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
struct
_change_arch
{
52
const
char
*
name
;
53
const
char
*
title
;
54
const
char
*
slaying
;
55
};
56
63
struct
treasure
{
64
struct
archetype
*
item
;
65
sstring
artifact
;
66
sstring
name
;
67
int8_t
list_magic_adjustment
;
68
uint8_t
list_magic_value
;
69
treasure
*
next
;
70
treasure
*
next_yes
;
71
treasure
*
next_no
;
72
struct
_change_arch
change_arch
;
73
uint8_t
chance
;
74
uint8_t
magic
;
79
uint16_t
nrof
;
80
};
81
85
struct
treasurelist
{
86
sstring
name
;
87
int16_t
total_chance
;
92
treasure
*
items
;
93
};
94
95
#endif
/* TREASURE_H */
treasure::chance
uint8_t chance
Definition:
treasure.h:73
treasurelist::items
treasure * items
Definition:
treasure.h:92
treasurelist::total_chance
int16_t total_chance
Definition:
treasure.h:87
treasure::list_magic_value
uint8_t list_magic_value
Definition:
treasure.h:68
GT_ONLY_GOOD
@ GT_ONLY_GOOD
Definition:
treasure.h:34
GT_STARTEQUIP
@ GT_STARTEQUIP
Definition:
treasure.h:33
treasure::name
sstring name
Definition:
treasure.h:66
treasure::change_arch
struct _change_arch change_arch
Definition:
treasure.h:72
GT_INVISIBLE
@ GT_INVISIBLE
Definition:
treasure.h:32
treasurelist
Definition:
treasure.h:85
treasurelist::name
sstring name
Definition:
treasure.h:86
treasure::nrof
uint16_t nrof
Definition:
treasure.h:79
treasure::item
struct archetype * item
Definition:
treasure.h:64
_change_arch::slaying
const char * slaying
Definition:
treasure.h:54
archetype
Definition:
object.h:483
GT_ENVIRONMENT
@ GT_ENVIRONMENT
Definition:
treasure.h:31
treasure::next
treasure * next
Definition:
treasure.h:69
_change_arch
Definition:
treasure.h:51
treasure::next_yes
treasure * next_yes
Definition:
treasure.h:70
treasure::magic
uint8_t magic
Definition:
treasure.h:74
sstring
const typedef char * sstring
Definition:
sstring.h:2
_change_arch::name
const char * name
Definition:
treasure.h:52
treasure::next_no
treasure * next_no
Definition:
treasure.h:71
_change_arch::title
const char * title
Definition:
treasure.h:53
treasure
Definition:
treasure.h:63
GT_UPDATE_INV
@ GT_UPDATE_INV
Definition:
treasure.h:35
treasure::artifact
sstring artifact
Definition:
treasure.h:65
GT_MINIMAL
@ GT_MINIMAL
Definition:
treasure.h:36
treasure::list_magic_adjustment
int8_t list_magic_adjustment
Definition:
treasure.h:67
crossfire-crossfire-server
include
treasure.h
Generated by
1.8.17