Modifier Definitions

Modifier Definitions
All relevant code is contained in Inventory/script/INV_Structs.dh

Modifiers are filled with integer percentage values (0-100%) which contextually modify output variables. The Modifier Struct struct ModifierDef { 	str PREFIX; int DAMAGE; int WEIGHT; int EFFECT; str COLOR; };
 * PREFIX - The string prefix of the item, i.e. "Rusty", "Cooked", etc
 * DAMAGE - Percentage of total damage for weapons
 * WEIGHT - Percentage of total weight for any item.
 * EFFECT - Percentage of value output for consumables, healing items, etc.
 * COLOR - String color ("LightRed") applied to item name.

ModifierList[]
All relevant code is contained within Inventory/script/MOD_Database.dh

ModifierList is called from index pointers in an Inventory array, meaning that item instances can have specific modifiers applied to them without effecting the base item properties.

Certain modifiers apply only to certain item classes. MOD_RUSTY, MOD_SHARP only apply to weapons, MOD_RAW/COOKED to food, et cetera. When writing up the modifier database, try to keep consistent ranges for specific item classes, then #define the range values - i.e. #define MOD_RANGE_FOOD_START 2

Links

 * Current ModifierList ODS