Crossfire Server, Branches 1.12  R18729
treasurestruct Struct Reference

#include <treasure.h>

+ Collaboration diagram for treasurestruct:

Data Fields

uint8 chance
 
struct _change_arch change_arch
 
struct archtitem
 
uint8 magic
 
const char * name
 
struct treasurestructnext
 
struct treasurestructnext_no
 
struct treasurestructnext_yes
 
uint16 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 92 of file treasure.h.

Field Documentation

struct _change_arch treasurestruct::change_arch

Override default arch values if set in treasure list

Definition at line 98 of file treasure.h.

Referenced by change_treasure(), and load_treasure().

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

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

struct treasurestruct* treasurestruct::next_no
struct treasurestruct* treasurestruct::next_yes

If this item was generated, use this link instead of ->next

Definition at line 96 of file treasure.h.

Referenced by check_treasurelist(), create_all_treasures(), dump_monster_treasure_rec(), find_treasure_by_name(), free_treasurestruct(), get_empty_treasure(), load_treasure(), and load_treasures().

uint16 treasurestruct::nrof

random 1 to nrof items are generated

Definition at line 105 of file treasure.h.

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


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