Crossfire Server, Trunk  R21017
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;
65  const char *name;
66  struct treasurestruct *next;
69  struct _change_arch change_arch;
77 } treasure;
78 
82 typedef struct treasureliststruct {
83  const char *name;
91 } treasurelist;
92 
93 #endif /* TREASURE_H */
struct treasureliststruct treasurelist
const char * name
Definition: treasure.h:52
unsigned char uint8_t
Definition: win32.h:161
struct treasureliststruct * next
Definition: treasure.h:89
Definition: object.h:465
struct archt * item
Definition: treasure.h:64
int16_t total_chance
Definition: treasure.h:84
signed short int16_t
Definition: win32.h:160
const char * title
Definition: treasure.h:53
uint8_t magic
Definition: treasure.h:71
struct _change_arch _change_arch
struct treasurestruct * next_no
Definition: treasure.h:68
uint16_t nrof
Definition: treasure.h:76
struct treasurestruct * items
Definition: treasure.h:90
unsigned short uint16_t
Definition: win32.h:163
uint8_t chance
Definition: treasure.h:70
const char * name
Definition: treasure.h:83
struct treasurestruct * next_yes
Definition: treasure.h:67
struct treasurestruct treasure
const char * slaying
Definition: treasure.h:54
struct treasurestruct * next
Definition: treasure.h:66
const char * name
Definition: treasure.h:65