Crossfire Server, Branch 1.12
R12190
|
treasure is one element in a linked list, which together consist of a complete treasure-list. More...
#include <treasure.h>
Data Fields | |
uint8 | chance |
Percent chance for this item. | |
struct _change_arch | change_arch |
Override default arch values if set in treasure list. | |
struct archt * | item |
Which item this link can be. | |
uint8 | magic |
Max magic bonus to item If the entry is a list transition, 'magic' contains the difficulty required to go to the new list. | |
const char * | name |
If non null, name of list to use instead. | |
struct treasurestruct * | next |
Next treasure-item in a linked list. | |
struct treasurestruct * | next_no |
If this item was not generated, then continue here. | |
struct treasurestruct * | next_yes |
If this item was generated, use this link instead of ->next. | |
uint16 | nrof |
random 1 to nrof items are generated |
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 92 of file treasure.h.
Percent chance for this item.
Definition at line 99 of file treasure.h.
Referenced by check_treasurelist(), create_all_treasures(), create_one_treasure(), CREResourcesWindow::fillTreasures(), get_empty_treasure(), god_intervention(), load_treasure(), load_treasures(), and resurrect_player().
Override default arch values if set in treasure list.
Definition at line 98 of file treasure.h.
Referenced by change_treasure(), and load_treasure().
struct archt* treasurestruct::item |
Which item this link can be.
Definition at line 93 of file treasure.h.
Referenced by become_follower(), cast_raise_dead_spell(), check_special_prayers(), check_treasurelist(), create_all_treasures(), create_one_treasure(), describe_monster(), determine_holy_arch(), dragon_ability_gain(), dump_monster_treasure_rec(), find_treasure_by_name(), get_empty_treasure(), god_gives_present(), god_intervention(), load_treasure(), load_treasures(), resurrect_player(), summon_object(), and CREUtils::treasureNode().
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 100 of file treasure.h.
Referenced by create_all_treasures(), create_one_treasure(), get_empty_treasure(), and load_treasure().
const char* treasurestruct::name |
If non null, name of list to use instead.
Definition at line 94 of file treasure.h.
Referenced by check_treasurelist(), create_all_treasures(), create_one_treasure(), dump_monster_treasure_rec(), find_treasure_by_name(), get_empty_treasure(), god_intervention(), load_treasure(), load_treasures(), CRETreasurePanel::setTreasure(), and CREUtils::treasureNode().
struct treasurestruct* treasurestruct::next |
Next treasure-item in a linked list.
Definition at line 95 of file treasure.h.
Referenced by become_follower(), cast_raise_dead_spell(), check_special_prayers(), check_treasurelist(), create_all_treasures(), create_one_treasure(), describe_monster(), determine_holy_arch(), dump_monster_treasure_rec(), CREResourcesWindow::fillTreasures(), find_treasure_by_name(), free_treasurestruct(), get_empty_treasure(), god_intervention(), load_treasure(), load_treasures(), resurrect_player(), CRETreasurePanel::setTreasure(), and summon_object().
If this item was not generated, then continue here.
Definition at line 97 of file treasure.h.
Referenced by check_treasurelist(), create_all_treasures(), dump_monster_treasure_rec(), find_treasure_by_name(), free_treasurestruct(), get_empty_treasure(), load_treasure(), and load_treasures().
If this item was generated, use this link instead of ->next.
Definition at line 96 of file treasure.h.
Referenced by check_treasurelist(), create_all_treasures(), dump_monster_treasure_rec(), find_treasure_by_name(), free_treasurestruct(), get_empty_treasure(), load_treasure(), and load_treasures().
random 1 to nrof items are generated
Definition at line 105 of file treasure.h.
Referenced by cast_raise_dead_spell(), create_all_treasures(), create_one_treasure(), get_empty_treasure(), load_treasure(), and summon_object().