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. | |
csString | effect |
Declares modifiers to some stats like weight, weapon speed, resistance/attack types. | |
csString | equip_script |
The part of equip_script to add to the item when this modifier is used. | |
csString | icon |
The icon this modifier will use for the random item generated. | |
uint32_t | id |
The id assigned to this modifier in the db. It's referenced by psitem. | |
csHash< bool, uint32_t > | itemRestrain |
Contains if the itemid is allowed or not. item id 0 means all items, false means disallowed. | |
csString | mesh |
The mesh this modifier will use for the random item generated. | |
uint32_t | mod_id |
The modifier position ID. | |
csString | modifier_type |
The type of modifier (suffix, prefix, adjective) | |
csString | name |
The part of name which this modifier will add when used. The position is determined by modifier_type. | |
csString | not_usable_with |
Defines which modifiers this isn't usable with. | |
float | probability |
The probability for this loot modifier to happen when generating a random item. | |
float | probabilityRange |
The probability for this loot modifier expressed as range between current number and previous one. | |
csString | stat_req_modifier |
The additional requirements to stats when this modifier is used. |
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 | ) |
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.
The probability for this loot modifier to happen when generating a random item.
Definition at line 40 of file lootrandomizer.h.
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.