Crossfire Server, Branch 1.12  R12190
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
[legend]

Data Fields

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

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

Override default arch values if set in treasure list.

Definition at line 98 of file treasure.h.

Referenced by change_treasure(), and load_treasure().

struct archt* treasurestruct::item

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

const char* treasurestruct::name

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

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: