21 lines
500 B
C
21 lines
500 B
C
/**
|
|
* Copyright (c) 2026 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "rpg/item/item.h"
|
|
|
|
#define ITEM_GIVE_MESSAGE_MAX_CHARS 256
|
|
|
|
/**
|
|
* Adds a quantity of an item to the player's backpack and shows a
|
|
* "Received <item> x<quantity>" message in the main textbox.
|
|
*
|
|
* @param item The item ID to give.
|
|
* @param quantity The quantity to give.
|
|
*/
|
|
void itemGive(const itemid_t item, const uint8_t quantity);
|