#include <defs.h>
Public Member Functions | |
bool | operator== (const ConsumableType &rhs) const |
Public Attributes | |
float | weight |
Tile | sprite |
std::string | name |
std::string | description |
bool | use |
int | rarity |
int | stat |
int | value |
int | type |
int | size |
The definition for the different types of consumable. This defines the various attributes of consumable, and members of this struct are used to construct consumable items.
|
inline |
Comparitor for consumables.
std::string ConsumableType::description |
A description of the item.
std::string ConsumableType::name |
The name of the item.
int ConsumableType::rarity |
How likely it is tha the item will appear.
int ConsumableType::size |
The size of the item.
Tile ConsumableType::sprite |
The tile which will be used to graphically represent the item.
int ConsumableType::stat |
The stat that the item modifies. This corresponds to an index in the character's stats and current_stats array.
int ConsumableType::type |
The type of modification the stat will perform. This corresponds to an enum containing the different types of a consumables.
bool ConsumableType::use |
True if the item has a use beyond changing attack.
int ConsumableType::value |
How much the stat is being modified by.
float ConsumableType::weight |
How much the item weighs.