Crossfire Server, Branches 1.12  R18729
treasure.h
Go to the documentation of this file.
1 /*
2  * static char *rcsid_treasure_h =
3  * "$Id: treasure.h 11578 2009-02-23 22:02:27Z lalo $";
4  */
5 
6 /*
7  CrossFire, A Multiplayer game for X-windows
8 
9  Copyright (C) 2002 Mark Wedel & Crossfire Development Team
10  Copyright (C) 1992 Frank Tore Johansen
11 
12  This program is free software; you can redistribute it and/or modify
13  it under the terms of the GNU General Public License as published by
14  the Free Software Foundation; either version 2 of the License, or
15  (at your option) any later version.
16 
17  This program is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with this program; if not, write to the Free Software
24  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 
26  The authors can be reached via e-mail at crossfire-devel@real-time.com
27 */
28 
34 #ifndef TREASURE_H
35 #define TREASURE_H
36 
38 #define CHANCE_FOR_ARTIFACT 20
39 
41 #define MAXMAGIC 4
42 
44 #define DIFFLEVELS 201
45 
47 #define MAX_SPELLITEM_LEVEL 110
48 
58 enum {
59  GT_ENVIRONMENT = 0x0001,
60  GT_INVISIBLE = 0x0002,
61  GT_STARTEQUIP = 0x0004,
62  GT_APPLY = 0x0008,
63  GT_ONLY_GOOD = 0x0010,
64  GT_UPDATE_INV = 0x0020,
65  GT_MINIMAL = 0x0040
66 };
67 
80 typedef struct _change_arch {
81  const char *name;
82  const char *title;
83  const char *slaying;
84 } _change_arch;
85 
92 typedef struct treasurestruct {
93  struct archt *item;
94  const char *name;
95  struct treasurestruct *next;
106 } treasure;
107 
111 typedef struct treasureliststruct {
112  const char *name;
120 } treasurelist;
121 
122 #endif /* TREASURE_H */
struct treasureliststruct treasurelist
signed short sint16
Definition: global.h:72
const char * name
Definition: treasure.h:81
struct _change_arch change_arch
Definition: treasure.h:98
sint16 total_chance
Definition: treasure.h:113
struct treasureliststruct * next
Definition: treasure.h:118
Definition: object.h:321
struct archt * item
Definition: treasure.h:93
const char * title
Definition: treasure.h:82
struct _change_arch _change_arch
unsigned char uint8
Definition: global.h:75
struct treasurestruct * next_no
Definition: treasure.h:97
unsigned short uint16
Definition: global.h:67
struct treasurestruct * items
Definition: treasure.h:119
const char * name
Definition: treasure.h:112
struct treasurestruct * next_yes
Definition: treasure.h:96
struct treasurestruct treasure
const char * slaying
Definition: treasure.h:83
uint16 nrof
Definition: treasure.h:105
struct treasurestruct * next
Definition: treasure.h:95
const char * name
Definition: treasure.h:94
uint8 chance
Definition: treasure.h:99