Crossfire Server, Trunk
R22047
|
#include <treasure.h>
Data Fields | |
struct treasurestruct * | items |
const char * | name |
int16_t | total_chance |
treasureliststruct represents one logical group of items to be generated together.
Definition at line 82 of file treasure.h.
struct treasurestruct* treasureliststruct::items |
Items in this list, linked
Definition at line 89 of file treasure.h.
Referenced by ResourcesManager::archetypeUse(), create_one_treasure(), create_treasure(), Treasures::destroy(), do_test(), dragon_ability_gain(), dump_monster_treasure_rec(), find_treasure_by_name(), CREWrapperTreasureList::itemCount(), TreasureLoader::load(), Treasures::replace(), resurrect_player(), CRETreasurePanel::setItem(), treasure_find_matching_type(), treasurelist_find_matching_type(), and TreasureWriter::write().
const char* treasureliststruct::name |
Usually monster-name/combination
Definition at line 83 of file treasure.h.
Referenced by check_treasurelist(), converter_type_move_on(), Treasures::create(), create_treasure(), Treasures::destroy(), TreasureLoader::load(), CREWrapperTreasureList::name(), potion_type_apply(), power_crystal_type_apply(), scroll_type_apply(), CRETreasurePanel::setItem(), CREUtils::treasureNode(), and TreasureWriter::write().
int16_t treasureliststruct::total_chance |
If non-zero, only 1 item on this list should be generated. The total_chance contains the sum of the chance for this list.
Definition at line 84 of file treasure.h.
Referenced by create_one_treasure(), create_treasure(), TreasureLoader::load(), Treasures::replace(), resurrect_player(), CREWrapperTreasureList::totalChance(), CREUtils::treasureNode(), and TreasureWriter::write().