Crossfire Server, Trunk  R20513
Data Fields
treasurestruct Struct Reference

treasure is one element in a linked list, which together consist of a complete treasure-list. More...

#include <treasure.h>

Collaboration diagram for treasurestruct:
Collaboration graph

Data Fields

uint8_t chance
 Percent chance for this item. More...
 
struct _change_arch change_arch
 Override default arch values if set in treasure list. More...
 
struct archtitem
 Which item this link can be. More...
 
uint8_t magic
 Max magic bonus to item If the entry is a list transition, 'magic' contains the difficulty required to go to the new list. More...
 
const char * name
 If non null, name of list to use instead. More...
 
struct treasurestructnext
 Next treasure-item in a linked list. More...
 
struct treasurestructnext_no
 If this item was not generated, then continue here. More...
 
struct treasurestructnext_yes
 If this item was generated, use this link instead of ->next. More...
 
uint16_t nrof
 random 1 to nrof items are generated More...
 

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

uint8_t treasurestruct::chance
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().

struct archt* treasurestruct::item
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(), get_empty_treasure(), and load_treasure().

const char* treasurestruct::name
struct treasurestruct* treasurestruct::next
struct treasurestruct* treasurestruct::next_no
struct treasurestruct* treasurestruct::next_yes
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: