Crossfire Server, Trunk  R22010
treasurestruct Struct Reference

#include <treasure.h>

+ Collaboration diagram for treasurestruct:

Data Fields

uint8_t chance
struct _change_arch change_arch
struct archt * item
uint8_t magic
const char * name
struct treasurestructnext
struct treasurestructnext_no
struct treasurestructnext_yes
uint16_t nrof

Detailed Description

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 63 of file treasure.h.

Field Documentation

◆ chance

◆ change_arch

struct _change_arch treasurestruct::change_arch

Override default arch values if set in treasure list

Definition at line 69 of file treasure.h.

Referenced by change_treasure(), and TreasureLoader::loadTreasure().

◆ item

◆ magic

uint8_t 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 71 of file treasure.h.

Referenced by create_all_treasures(), create_one_treasure(), dragon_ability_gain(), get_empty_treasure(), and TreasureLoader::loadTreasure().

◆ name

◆ next

◆ next_no

◆ next_yes

◆ nrof

uint16_t treasurestruct::nrof

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