ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/define.h
(Generate patch)

Comparing deliantra/server/include/define.h (file contents):
Revision 1.74 by root, Tue Sep 4 08:42:57 2007 UTC vs.
Revision 1.75 by root, Mon Sep 10 10:43:10 2007 UTC

122#define POTION 5 122#define POTION 5
123#define FOOD 6 123#define FOOD 6
124#define POISON 7 124#define POISON 7
125#define BOOK 8 125#define BOOK 8
126#define CLOCK 9 126#define CLOCK 9
127 127//10
128//11
129//12
128#define ARROW 13 130#define ARROW 13
129#define BOW 14 131#define BOW 14
130#define WEAPON 15 132#define WEAPON 15
131#define ARMOUR 16 133#define ARMOUR 16
132#define PEDESTAL 17 134#define PEDESTAL 17
133#define ALTAR 18 135#define ALTAR 18
134 136//19
135#define LOCKED_DOOR 20 137#define LOCKED_DOOR 20
136#define SPECIAL_KEY 21 138#define SPECIAL_KEY 21
137#define MAP 22 139#define MAP 22
138#define DOOR 23 140#define DOOR 23
139#define KEY 24 141#define KEY 24
140 142//25
141#define TIMED_GATE 26 143#define TIMED_GATE 26
142#define TRIGGER 27 144#define TRIGGER 27
143#define GRIMREAPER 28 145#define GRIMREAPER 28
144#define MAGIC_EAR 29 146#define MAGIC_EAR 29
145#define TRIGGER_BUTTON 30 147#define TRIGGER_BUTTON 30
154#define AMULET 39 156#define AMULET 39
155#define PLAYERMOVER 40 157#define PLAYERMOVER 40
156#define TELEPORTER 41 158#define TELEPORTER 41
157#define CREATOR 42 159#define CREATOR 42
158#define SKILL 43 /* also see SKILL_TOOL (74) below */ 160#define SKILL 43 /* also see SKILL_TOOL (74) below */
159 161//44
160#define EARTHWALL 45 162#define EARTHWALL 45
161#define GOLEM 46 163#define GOLEM 46
162 164//47
163#define THROWN_OBJ 48 165#define THROWN_OBJ 48
164#define BLINDNESS 49 166#define BLINDNESS 49
165#define GOD 50 167#define GOD 50
166#define DETECTOR 51 /* peterm: detector is an object 168#define DETECTOR 51 /* peterm: detector is an object
167 * which notices the presense of 169 * which notices the presense of
182 184
183#define PEACEMAKER 59 /* Object owned by a player which can convert 185#define PEACEMAKER 59 /* Object owned by a player which can convert
184 * a monster into a peaceful being incapable of attack. 186 * a monster into a peaceful being incapable of attack.
185 */ 187 */
186#define GEM 60 188#define GEM 60
187 189//61
188#define FIREWALL 62 190#define FIREWALL 62
189#define ANVIL 63 191#define ANVIL 63
190#define CHECK_INV 64 /* by b.t. thomas@nomad.astro.psu.edu */ 192#define CHECK_INV 64 /* by b.t. thomas@nomad.astro.psu.edu */
191#define MOOD_FLOOR 65 /* 193#define MOOD_FLOOR 65 /*
192 * values of last_sp set how to change: 194 * values of last_sp set how to change:
206#define FLOOR 71 /* this is a floor tile -> native layer 0 */ 208#define FLOOR 71 /* this is a floor tile -> native layer 0 */
207#define FLESH 72 /* animal 'body parts' -b.t. */ 209#define FLESH 72 /* animal 'body parts' -b.t. */
208#define INORGANIC 73 /* metals and minerals */ 210#define INORGANIC 73 /* metals and minerals */
209#define SKILL_TOOL 74 /* Allows the use of a skill */ 211#define SKILL_TOOL 74 /* Allows the use of a skill */
210#define LIGHTER 75 212#define LIGHTER 75
211 213//76
212#define BUILDABLE_WALL 77 /* this is a buildable wall */ 214#define BUILDABLE_WALL 77 /* this is a buildable wall */
213 215//78
214
215#define MISC_OBJECT 79 /* misc. objects are for objects without a function 216#define MISC_OBJECT 79 /* misc. objects are for objects without a function
216 in the engine. Like statues, clocks, chairs,... 217 in the engine. Like statues, clocks, chairs,...
217 If perhaps we create a function where we can sit 218 If perhaps we create a function where we can sit
218 on chairs, we create a new type and remove all 219 on chairs, we create a new type and remove all
219 chairs from here. */ 220 chairs from here. */
220 221//80
222//81
221#define LAMP 82 /* a lamp */ 223#define LAMP 82 /* a lamp */
222#define DUPLICATOR 83 /* duplicator/multiplier object */ 224#define DUPLICATOR 83 /* duplicator/multiplier object */
223 225//84
224#define SPELLBOOK 85 226#define SPELLBOOK 85
225 227//86
226#define CLOAK 87 228#define CLOAK 87
227 229//88
230//89
228#define SPINNER 90 231#define SPINNER 90
229#define GATE 91 232#define GATE 91
230#define BUTTON 92 233#define BUTTON 92
231#define CF_HANDLE 93 234#define CF_HANDLE 93
232#define HOLE 94 235#define HOLE 94
233#define TRAPDOOR 95 236#define TRAPDOOR 95
234 237//96
238//97
235#define SIGN 98 239#define SIGN 98
236#define BOOTS 99 240#define BOOTS 99
237#define GLOVES 100 241#define GLOVES 100
238#define SPELL 101 242#define SPELL 101
239#define SPELL_EFFECT 102 243#define SPELL_EFFECT 102
240#define CONVERTER 103 244#define CONVERTER 103
241#define BRACERS 104 245#define BRACERS 104
242#define POISONING 105 246#define POISONING 105
243#define SAVEBED 106 247#define SAVEBED 106
244 248//107
249//108
245#define WAND 109 250#define WAND 109
246
247#define INSCRIBABLE 110 // inscribable things, st 0 book st 1 spell 251#define INSCRIBABLE 110 // inscribable things, st 0 book st 1 spell
248#define SCROLL 111 252#define SCROLL 111
249#define DIRECTOR 112 253#define DIRECTOR 112
250#define GIRDLE 113 254#define GIRDLE 113
251#define FORCE 114 255#define FORCE 114
252#define POTION_EFFECT 115 /* a force, holding the effect of a potion */ 256#define POTION_EFFECT 115 /* a force, holding the effect of a potion */
253#define EVENT_CONNECTOR 116 /* Lauwenmark: an invisible object holding a plugin event hook */ 257#define EVENT_CONNECTOR 116 /* Lauwenmark: an invisible object holding a plugin event hook */
254 258//117
259//118
260//119
261//120
255#define CLOSE_CON 121 /* Eneq(@csd.uu.se): Id for close_container archetype. */ 262#define CLOSE_CON 121 /* Eneq(@csd.uu.se): Id for close_container archetype. */
256#define CONTAINER 122 263#define CONTAINER 122
257#define ARMOUR_IMPROVER 123 264#define ARMOUR_IMPROVER 123
258#define WEAPON_IMPROVER 124 265#define WEAPON_IMPROVER 124
259 266//125
267//126
268//127
269//128
270//129
260#define SKILLSCROLL 130 /* can add a skill to player's inventory -bt. */ 271#define SKILLSCROLL 130 /* can add a skill to player's inventory -bt. */
272//131
273//132
274//133
275//134
276//135
277//136
278//137
261#define DEEP_SWAMP 138 279#define DEEP_SWAMP 138
262#define IDENTIFY_ALTAR 139 280#define IDENTIFY_ALTAR 139
263 281//140
282//141
283//142
284//143
285//144
286//145
287//146
288//147
289//148
290//149
264#define MENU 150 /* Mark Wedel (mark@pyramid.com) Shop inventories */ 291#define MENU 150 /* Mark Wedel (mark@pyramid.com) Shop inventories */
265 292//151
293//152
294//153
266#define RUNE 154 295#define RUNE 154
267#define TRAP 155 296#define TRAP 155
268
269#define POWER_CRYSTAL 156 297#define POWER_CRYSTAL 156
270#define CORPSE 157 298#define CORPSE 157
271
272#define DISEASE 158 299#define DISEASE 158
273#define SYMPTOM 159 300#define SYMPTOM 159
274#define BUILDER 160 /* Generic item builder, see subtypes */ 301#define BUILDER 160 /* Generic item builder, see subtypes */
275#define MATERIAL 161 /* Material for building */ 302#define MATERIAL 161 /* Material for building */
276 303//162
277#define ITEM_TRANSFORMER 163 /* Transforming one item with another */ 304#define ITEM_TRANSFORMER 163 /* Transforming one item with another */
278 305//164
279#define SAFE_GROUND 165 /* This is a safe ground, means that neither bombs, 306#define SAFE_GROUND 165 /* This is a safe ground, means that neither bombs,
280 potions, alchemy, or magic works here (elmex) */ 307 potions, alchemy, or magic works here (elmex) */
281 308
282#define NUM_TYPES 166 // must be max(type) + 1 309#define NUM_TYPES 166 // must be max(type) + 1
283 310
284/* DEAD TYPES: */
285//#define FBULLET 10
286//#define FBALL 11
287//#define LIGHTNING 12 // elmex: implemented by type 102 subtype 4
288//#define CONFUSION 19
289//#define MMISSILE 25
290/*#define EXPERIENCE 44*//* This is basically obsolete now. It used to contain
291 * experience for broad skill categories. This value
292 * is now automatically converteed at load time.
293 */
294//#define BOMB 47
295//#define FIRECHEST 61 /* FIRECHEST folded into FIREWALL */
296
297/* random crossfire developer: The trap_part, wall, light_source,
298 * misc_object, monster, and spawn_generator
299 * types are not used in any archetypes,
300 * and should perhaps be removed.
301 *
302 * Wed Dec 20 13:35:24 CET 2006:
303 * elmex: removed TRAP_PART, LIGHT_SOURCE, MONSTER and SPAWN_GENERATOR now.
304 * monsters are marked by FLAG_MONSTER and generator with FLAG_GENERATOR.
305 * renamed WALL to BUILDABLE_WALL.
306 */
307
308//#define TRAP_PART 76 /* Needed by set traps skill -b.t. */
309//#define LIGHT_SOURCE 78 /* torches, lamps, etc. */
310//#define MONSTER 80 /* yes, thats a real, living creature */
311//#define SPAWN_GENERATOR 81 /* a spawn point or monster generator object */
312//#define TOOL 84 /* a tool for building objects */
313//#define BUILDFAC 86 /* facilities for building objects */
314//#define CONE 88
315//#define AURA 89 /* aura spell object */
316//#define WORD_OF_RECALL 96
317//#define PARAIMAGE 97
318//#define POISONCLOUD 107
319//#define FIREHOLES 108
320//#define ABILITY 110
321/* unused: 125 - 129
322 * type 125 was MONEY_CHANGER
323 */
324//#define CANCELLATION 141 /* not used with new spell code */
325//#define BALL_LIGHTNING 151 /* peterm: ball lightning and color spray */
326//#define SWARM_SPELL 153
327//#define GPS 162 /* Ground positionning system, moved to Python plugin */
328//#define QUEST 164 /* See below for subtypes */
329
330/* END TYPE DEFINE */ 311/* END TYPE DEFINE */
331 312
332#define NUM_SUBTYPES 64 // maximum supported subtype number + 1, can be increased to 256 313// maximum supported subtype number + 1, can be increased to 256
314// currently (2007-09) in use: 50
315#define NUM_SUBTYPES 64
333 316
334/* Subtypes for BUILDER */ 317/* Subtypes for BUILDER */
335#define ST_BD_BUILD 1 /* Builds an item */ 318#define ST_BD_BUILD 1 /* Builds an item */
336#define ST_BD_REMOVE 2 /* Removes an item */ 319#define ST_BD_REMOVE 2 /* Removes an item */
337 320
338/* Subtypes for MATERIAL */ 321/* Subtypes for MATERIAL */
339#define ST_MAT_FLOOR 1 /* Floor */ 322#define ST_MAT_FLOOR 1 /* Floor */
340#define ST_MAT_WALL 2 /* Wall */ 323#define ST_MAT_WALL 2 /* Wall */
341#define ST_MAT_ITEM 3 /* All other items, including doors & such */ 324#define ST_MAT_ITEM 3 /* All other items, including doors & such */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines