Crossfire Server, Trunk  1.75.0
treasurelist Struct Reference

treasurelist represents one logical group of items to be generated together. More...

#include <treasure.h>

+ Collaboration diagram for treasurelist:

Data Fields

treasureitems
 Items in this list, linked. More...
 
sstring name
 Usually monster-name/combination. More...
 
int16_t total_chance
 If non-zero, only 1 item on this list should be generated. More...
 

Detailed Description

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

Definition at line 85 of file treasure.h.

Field Documentation

◆ items

◆ name

◆ total_chance

int16_t treasurelist::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 87 of file treasure.h.

Referenced by create_one_treasure(), TreasureLoader::load(), Treasures::replace(), and resurrect_player().


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