Crossfire Server, Trunk  R22047
treasureliststruct Struct Reference

#include <treasure.h>

+ Collaboration diagram for treasureliststruct:

Data Fields

struct treasurestructitems
 
const char * name
 
int16_t total_chance
 

Detailed Description

treasureliststruct represents one logical group of items to be generated together.

Definition at line 82 of file treasure.h.

Field Documentation

◆ items

◆ name

◆ total_chance

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().


The documentation for this struct was generated from the following file: