Planeshift
|
This class holds one loot modifier The lootRandomizer contions arrays of these. More...
#include <lootrandomizer.h>
Public Member Functions | |
bool | IsAllowed (uint32_t itemID) |
Public Attributes | |
float | cost_modifier |
The cost of this modifier. More... | |
csString | effect |
Declares modifiers to some stats like weight, weapon speed, resistance/attack types. More... | |
csString | equip_script |
The part of equip_script to add to the item when this modifier is used. More... | |
csString | icon |
The icon this modifier will use for the random item generated. More... | |
uint32_t | id |
The id assigned to this modifier in the db. It's referenced by psitem. More... | |
csHash< bool, uint32_t > | itemRestrain |
Contains if the itemid is allowed or not. item id 0 means all items, false means disallowed. More... | |
csString | mesh |
The mesh this modifier will use for the random item generated. More... | |
uint32_t | mod_id |
The modifier position ID. More... | |
csString | modifier_type |
The type of modifier (suffix, prefix, adjective) More... | |
csString | name |
The part of name which this modifier will add when used. The position is determined by modifier_type. More... | |
csString | not_usable_with |
Defines which modifiers this isn't usable with. More... | |
float | probability |
The probability for this loot modifier to happen when generating a random item. More... | |
float | probabilityRange |
The probability for this loot modifier expressed as range between current number and previous one. More... | |
csString | stat_req_modifier |
The additional requirements to stats when this modifier is used. More... | |
This class holds one loot modifier The lootRandomizer contions arrays of these.
Definition at line 32 of file lootrandomizer.h.
bool LootModifier::IsAllowed | ( | uint32_t | itemID | ) |
float LootModifier::cost_modifier |
The cost of this modifier.
Definition at line 43 of file lootrandomizer.h.
csString LootModifier::effect |
Declares modifiers to some stats like weight, weapon speed, resistance/attack types.
Definition at line 38 of file lootrandomizer.h.
csString LootModifier::equip_script |
The part of equip_script to add to the item when this modifier is used.
Definition at line 39 of file lootrandomizer.h.
csString LootModifier::icon |
The icon this modifier will use for the random item generated.
Definition at line 45 of file lootrandomizer.h.
uint32_t LootModifier::id |
The id assigned to this modifier in the db. It's referenced by psitem.
Definition at line 34 of file lootrandomizer.h.
csHash<bool, uint32_t> LootModifier::itemRestrain |
Contains if the itemid is allowed or not. item id 0 means all items, false means disallowed.
Definition at line 47 of file lootrandomizer.h.
csString LootModifier::mesh |
The mesh this modifier will use for the random item generated.
Definition at line 44 of file lootrandomizer.h.
uint32_t LootModifier::mod_id |
The modifier position ID.
Definition at line 35 of file lootrandomizer.h.
csString LootModifier::modifier_type |
The type of modifier (suffix, prefix, adjective)
Definition at line 36 of file lootrandomizer.h.
csString LootModifier::name |
The part of name which this modifier will add when used. The position is determined by modifier_type.
Definition at line 37 of file lootrandomizer.h.
csString LootModifier::not_usable_with |
Defines which modifiers this isn't usable with.
Definition at line 46 of file lootrandomizer.h.
float LootModifier::probability |
The probability for this loot modifier to happen when generating a random item.
Definition at line 40 of file lootrandomizer.h.
float LootModifier::probabilityRange |
The probability for this loot modifier expressed as range between current number and previous one.
Definition at line 41 of file lootrandomizer.h.
csString LootModifier::stat_req_modifier |
The additional requirements to stats when this modifier is used.
Definition at line 42 of file lootrandomizer.h.