Crossfire Server, Trunk  R20993
treasurestruct Struct Reference

#include <treasure.h>

+ Collaboration diagram for treasurestruct:

Data Fields

uint8_t chance
 
struct _change_arch change_arch
 
struct archtitem
 
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 load_treasure().

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

◆ name

◆ next

◆ next_no

◆ next_yes

struct treasurestruct* treasurestruct::next_yes

◆ nrof

uint16_t treasurestruct::nrof

random 1 to nrof items are generated

Definition at line 76 of file treasure.h.

Referenced by cast_raise_dead_spell(), create_all_treasures(), create_one_treasure(), get_empty_treasure(), load_treasure(), and pets_summon_object().


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