#include <item.hpp>
Public Member Functions | |
int | getValue (int type) const |
Gets the value associated to a modifier type, or zero if none. | |
void | setValue (int type, int amount) |
Sets the value associated to a modifier type. | |
int | getAttributeValue (int attr) const |
Gets the value associated to a MOD_ATTRIBUTE class, or zero if none. | |
void | setAttributeValue (int attr, int amount) |
Sets the value associated to a MOD_ATTRIBUTE class. | |
void | applyAttributes (Being *) const |
Applies all the attribute modifiers to a given Being. | |
void | cancelAttributes (Being *) const |
Cancels all the applied modifiers to a given Being. |
Definition at line 132 of file item.hpp.
void ItemModifiers::cancelAttributes | ( | Being * | b | ) | const |
Cancels all the applied modifiers to a given Being.
Only meant for equipment.
Definition at line 129 of file item.cpp.
References Being::applyModifier().