Crossfire Server, Trunk
|
#include <treasure.h>
Data Fields | |
sstring | artifact |
uint8_t | chance |
struct _change_arch | change_arch |
struct archetype * | item |
int8_t | list_magic_adjustment |
uint8_t | list_magic_value |
uint8_t | magic |
sstring | name |
treasure * | next |
treasure * | next_no |
treasure * | next_yes |
uint16_t | nrof |
treasure is one element in a linked list, which together consist of a complete treasure-list. Any arch can point to a treasure-list to get generated standard treasure when an archetype of that type is generated (from a generator)
Definition at line 63 of file treasure.h.
sstring treasure::artifact |
If not null, the name of the artifact to apply to item
Definition at line 65 of file treasure.h.
Referenced by equal(), generate_random_treasure(), and TreasureWrapper::setArtifact().
uint8_t treasure::chance |
Percent chance for this item
Definition at line 73 of file treasure.h.
Referenced by TreasureWrapper::displayName(), equal(), generate_random_treasure(), god_intervention(), and TreasureWrapper::setChance().
struct _change_arch treasure::change_arch |
Override default arch values if set in treasure list
Definition at line 72 of file treasure.h.
struct archetype* treasure::item |
Which item this link can be
Definition at line 64 of file treasure.h.
Referenced by determine_holy_arch(), TreasureWrapper::displayIcon(), TreasureWrapper::displayName(), dragon_ability_gain(), equal(), generate_random_treasure(), god_gives_present(), god_intervention(), pets_summon_object(), remove_special_prayers(), TreasureWrapper::setArch(), TreasureWrapper::setList(), TreasureWrapper::TreasureWrapper(), and TreasureWrapper::uses().
int8_t treasure::list_magic_adjustment |
Adjust difficulty when generating the list pointed by name, ignored if list_magic_value is non zero
Definition at line 67 of file treasure.h.
Referenced by equal(), generate_random_treasure(), TreasureWrapper::listMagicAdjustment(), and TreasureWrapper::setListMagicAdjustment().
uint8_t treasure::list_magic_value |
Set difficulty when generating the list pointed by name
Definition at line 68 of file treasure.h.
Referenced by equal(), generate_random_treasure(), TreasureWrapper::listMagicValue(), and TreasureWrapper::setListMagicValue().
uint8_t treasure::magic |
Max magic bonus to item If the entry is a list transition, 'magic' contains the difficulty required to go to the new list
Definition at line 74 of file treasure.h.
Referenced by dragon_ability_gain(), equal(), generate_random_treasure(), and TreasureWrapper::setMagic().
sstring treasure::name |
If non null, name of list to use instead
Definition at line 66 of file treasure.h.
Referenced by TreasureWrapper::displayIcon(), TreasureWrapper::displayName(), equal(), generate_random_treasure(), god_intervention(), TreasureWrapper::setArch(), TreasureWrapper::setList(), and TreasureWrapper::uses().
treasure* treasure::next |
Next treasure-item in a linked list
Definition at line 69 of file treasure.h.
Referenced by become_follower(), determine_holy_arch(), dragon_ability_gain(), generate_random_treasure(), god_intervention(), pets_summon_object(), remove_special_prayers(), START_TEST(), treasure_insert(), and treasure_remove_item().
treasure* treasure::next_no |
If this item was not generated, then continue here
Definition at line 71 of file treasure.h.
Referenced by TreasureWrapper::addChild(), TreasureWrapper::childrenCount(), generate_random_treasure(), TreasureWrapper::removeChild(), TreasureWrapper::swapYesNo(), and TreasureWrapper::TreasureWrapper().
treasure* treasure::next_yes |
If this item was generated, use this link instead of ->next
Definition at line 70 of file treasure.h.
Referenced by TreasureWrapper::addChild(), TreasureWrapper::childrenCount(), generate_random_treasure(), TreasureWrapper::removeChild(), TreasureWrapper::swapYesNo(), and TreasureWrapper::TreasureWrapper().
uint16_t treasure::nrof |
Random 1 to nrof items are generated
Definition at line 79 of file treasure.h.
Referenced by TreasureWrapper::displayName(), equal(), generate_random_treasure(), pets_summon_object(), and TreasureWrapper::setNrof().