Crossfire Server, Branches 1.12
R18729
|
#include <treasure.h>
Data Fields | |
uint8 | chance |
struct _change_arch | change_arch |
struct archt * | item |
uint8 | magic |
const char * | name |
struct treasurestruct * | next |
struct treasurestruct * | next_no |
struct treasurestruct * | next_yes |
uint16 | 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 92 of file treasure.h.
uint8 treasurestruct::chance |
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().
struct _change_arch treasurestruct::change_arch |
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().
uint8 treasurestruct::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 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().
struct treasurestruct* treasurestruct::next_no |
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().
struct treasurestruct* treasurestruct::next_yes |
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().
uint16 treasurestruct::nrof |
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().