Crossfire Server, Trunk
treasure.h
Go to the documentation of this file.
1 
6 #ifndef TREASURE_H
7 #define TREASURE_H
8 
10 #define CHANCE_FOR_ARTIFACT 20
11 
13 #define MAXMAGIC 4
14 
16 #define DIFFLEVELS 201
17 
19 #define MAX_SPELLITEM_LEVEL 110
20 
30 enum {
31  GT_ENVIRONMENT = 0x0001,
32  GT_INVISIBLE = 0x0002,
33  GT_STARTEQUIP = 0x0004,
34  GT_ONLY_GOOD = 0x0008,
35  GT_UPDATE_INV = 0x0010,
36  GT_MINIMAL = 0x0020
37 };
38 
51 typedef struct _change_arch {
52  const char *name;
53  const char *title;
54  const char *slaying;
55 } _change_arch;
56 
63 typedef struct treasurestruct {
64  struct archt *item;
68  uint8_t list_magic_value;
69  struct treasurestruct *next;
73  uint8_t chance;
74  uint8_t magic;
79  uint16_t nrof;
80 } treasure;
81 
85 typedef struct treasureliststruct {
87  int16_t total_chance;
93 } treasurelist;
94 
95 #endif /* TREASURE_H */
treasurestruct::item
struct archt * item
Definition: treasure.h:64
treasurestruct::chance
uint8_t chance
Definition: treasure.h:73
treasurelist
struct treasureliststruct treasurelist
treasurestruct::next_yes
struct treasurestruct * next_yes
Definition: treasure.h:70
treasure
struct treasurestruct treasure
GT_ONLY_GOOD
@ GT_ONLY_GOOD
Definition: treasure.h:34
treasurestruct::change_arch
struct _change_arch change_arch
Definition: treasure.h:72
treasureliststruct::name
sstring name
Definition: treasure.h:86
treasurestruct::next_no
struct treasurestruct * next_no
Definition: treasure.h:71
GT_STARTEQUIP
@ GT_STARTEQUIP
Definition: treasure.h:33
treasurestruct
Definition: treasure.h:63
archt
Definition: object.h:470
treasurestruct::list_magic_value
uint8_t list_magic_value
Definition: treasure.h:68
treasurestruct::magic
uint8_t magic
Definition: treasure.h:74
GT_INVISIBLE
@ GT_INVISIBLE
Definition: treasure.h:32
treasurestruct::artifact
sstring artifact
Definition: treasure.h:65
sstring
const typedef char * sstring
Definition: global.h:43
_change_arch::slaying
const char * slaying
Definition: treasure.h:54
GT_ENVIRONMENT
@ GT_ENVIRONMENT
Definition: treasure.h:31
_change_arch
Definition: treasure.h:51
treasureliststruct::total_chance
int16_t total_chance
Definition: treasure.h:87
treasureliststruct::items
struct treasurestruct * items
Definition: treasure.h:92
treasurestruct::list_magic_adjustment
int8_t list_magic_adjustment
Definition: treasure.h:67
treasurestruct::nrof
uint16_t nrof
Definition: treasure.h:79
_change_arch::name
const char * name
Definition: treasure.h:52
treasurestruct::next
struct treasurestruct * next
Definition: treasure.h:69
_change_arch
struct _change_arch _change_arch
_change_arch::title
const char * title
Definition: treasure.h:53
GT_UPDATE_INV
@ GT_UPDATE_INV
Definition: treasure.h:35
treasurestruct::name
sstring name
Definition: treasure.h:66
GT_MINIMAL
@ GT_MINIMAL
Definition: treasure.h:36
treasureliststruct
Definition: treasure.h:85