Atrinik Server  4.0
spellist.h
Go to the documentation of this file.
1 /*************************************************************************
2  * Atrinik, a Multiplayer Online Role Playing Game *
3  * *
4  * Copyright (C) 2009-2014 Alex Tokar and Atrinik Development Team *
5  * *
6  * Fork from Crossfire (Multiplayer game for X-windows). *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License *
19  * along with this program; if not, write to the Free Software *
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
21  * *
22  * The author can be reached at admin@atrinik.org *
23  ************************************************************************/
24 
30 #ifndef SPELLIST_H
31 #define SPELLIST_H
32 
35  {"firestorm",
36  5, 8, 3, 6, 0, 1.0,
37  3, 5, 4, 4, 9, "magic_fire.ogg",
39  PATH_FIRE, "firebreath", NULL},
40 
41  {"icestorm",
42  5, 8, 3, 6, 0, 1.0,
43  3, 5, 4, 4, 9, "magic_ice.ogg",
45  PATH_FROST, "icestorm", NULL},
46 
47  {"minor healing",
48  4, 8, 3, 6, 3, 1.0,
49  0, 0, 0, 0, 0, "magic_stat.ogg",
51  PATH_RESTORE, "meffect_green", NULL},
52 
53  {"cure poison",
54  5, 8, 3, 6, 4, 1.0,
55  0, 0, 0, 0, 0, "magic_stat.ogg",
57  PATH_RESTORE, "meffect_purple", NULL},
58 
59  {"cure disease",
60  5, 8, 3, 6, 4, 1.0,
61  0, 0, 0, 0, 0, "magic_stat.ogg",
63  PATH_RESTORE, "meffect_purple", NULL},
64 
65  {"strength self",
66  5, 8, 3, 6, 0, 1.0,
67  0, 0, 0, 4, 0, "magic_stat.ogg",
69  PATH_SELF, "meffect_yellow", NULL},
70 
71  {"identify",
72  5, 8, 3, 6, 2, 1.0,
73  0, 0, 0, 0, 0, "magic_default.ogg",
75  PATH_INFO, "meffect_pink", NULL},
76 
77  {"asteroid",
78  5, 32, 2, 0, 3, 1.0,
79  4, 10, 4, 16, 8, "magic_rstrike.ogg",
81  PATH_FROST, "asteroid", NULL},
82 
83  {"frost nova",
84  5, 42, 2, 0, 3, 1.0,
85  4, 10, 4, 8, 6, "magic_rstrike.ogg",
87  PATH_FROST, "asteroid", NULL},
88 
89  {"remove curse",
90  5, 8, 3, 6, 2, 1.0,
91  0, 0, 0, 0, 0, "magic_default.ogg",
93  PATH_TURNING, "meffect_blue", NULL},
94 
95  {"remove damnation",
96  5, 8, 3, 6, 2, 1.0,
97  0, 0, 0, 0, 0, "magic_default.ogg",
99  PATH_TURNING, "meffect_blue", NULL},
100 
101  {"cause light wounds",
102  4, 8, 3, 6, 0, 1.0,
103  5, 5, 4, 4, 9, "magic_wound.ogg",
105  PATH_WOUNDING, "cause_wounds", NULL},
106 
107  {"confuse",
108  5, 8, 3, 6, 0, 1.0,
109  4, 5, 4, 4, 9, "magic_confusion.ogg",
111  PATH_MIND, NULL, NULL},
112 
113  {"magic bullet",
114  4, 8, 3, 6, 0, 1.0,
115  7, 5, 4, 4, 9, "magic_bullet1.ogg",
117  PATH_MISSILE, "bullet", NULL},
118 
119  {"summon golem",
120  5, 8, 3, 6, 0, 1.0,
121  4, 5, 4, 4, 9, "magic_summon1.ogg",
123  PATH_SUMMON, NULL, NULL},
124 
125  {"remove depletion",
126  5, 8, 3, 6, 0, 1.0,
127  0, 0, 0, 0, 0, "magic_stat.ogg",
129  PATH_RESTORE, "meffect_purple", NULL},
130 
131  {"probe",
132  2, 8, 3, 6, 0, 1.0,
133  0, 0, 0, 0, 0, "magic_default.ogg",
135  PATH_INFO, "probebullet", NULL},
136 
137  {"town portal",
138  30, 8, 1, 0, 3, 1.0,
139  0, 0, 0, 0, 0, "magic_stat.ogg",
141  PATH_TELE, "perm_magic_portal", NULL},
142 
143  {"create food",
144  30, 8, 1, 0, 3, 1.0,
145  3, 0, 0, 0, 0, "magic_stat.ogg",
147  PATH_CREATE, NULL, NULL},
148 
149  {"word of recall",
150  5, 24, 1, 19, 3, 1.0,
151  25, 3, 3, 4, 0, "magic_teleport.ogg",
153  PATH_TELE, NULL, NULL},
154 
155  {"recharge",
156  50, 100, 2, 10, 0, 1.0,
157  0, 0, 0, 0, 0, "magic_invisible.ogg",
159  PATH_TRANSMUTE, NULL, NULL},
160 
161  {"greater healing",
162  6, 8, 3, 0, 3, 1.0,
163  0, 0, 0, 0, 0, "magic_stat.ogg",
165  PATH_RESTORE, "meffect_green", NULL},
166 
167  {"restoration",
168  10, 12, 3, 0, 3, 1.0,
169  0, 0, 0, 0, 0, "magic_stat.ogg",
171  PATH_RESTORE, "meffect_green", NULL},
172 
173  {"protection from cold",
174  22, 100, 2, 0, 3, 1.0,
175  1, 350, 3, 4, 0, "magic_stat.ogg",
177  PATH_PROT, NULL, NULL},
178 
179  {"protection from fire",
180  22, 100, 2, 0, 3, 1.0,
181  1, 350, 3, 4, 0, "magic_stat.ogg",
183  PATH_PROT, NULL, NULL},
184 
185  {"protection from electricity",
186  22, 100, 2, 0, 3, 1.0,
187  1, 350, 3, 4, 0, "magic_stat.ogg",
189  PATH_PROT, NULL, NULL},
190 
191  {"protection from poison",
192  22, 100, 2, 0, 3, 1.0,
193  1, 350, 3, 4, 0, "magic_stat.ogg",
195  PATH_PROT, NULL, NULL},
196 
197  {"consecrate",
198  10, 70, 2, 0, 3, 1.0,
199  0, 0, 0, 0, 0, "magic_stat.ogg",
201  PATH_TRANSMUTE, NULL, NULL},
202 
203  {"finger of death",
204  7, 12, 2, 0, 5, 1.0,
205  8, 0, 2, 0, 15, "magic_hword.ogg",
207  PATH_DEATH, "spellobject_finger_of_death", NULL},
208 
209  {"cause cold",
210  10, 50, 2, 0, 3, 1.0,
211  8, 0, 4, 2, 7, "magic_stat.ogg",
213  PATH_DEATH, "disease_cold", NULL},
214 
215  {"cause flu",
216  12, 50, 2, 0, 3, 1.0,
217  10, 0, 4, 2, 7, "magic_stat.ogg",
219  PATH_DEATH, "flu", NULL},
220 
221  {"cause leprosy",
222  14, 58, 2, 0, 3, 1.0,
223  6, 0, 4, 2, 7, "magic_stat.ogg",
225  PATH_DEATH, "leprosy", NULL},
226 
227  {"cause smallpox",
228  16, 58, 2, 0, 3, 1.0,
229  8, 0, 4, 2, 7, "magic_stat.ogg",
231  PATH_DEATH, "smallpox", NULL},
232 
233  {"cause pneumonic plague",
234  18, 58, 2, 0, 3, 1.0,
235  8, 0, 4, 2, 7, "magic_stat.ogg",
237  PATH_DEATH, "pneumonic_plague", NULL},
238 
239  {"meteor",
240  5, 32, 2, 0, 3, 1.0,
241  4, 10, 4, 16, 8, "magic_rstrike.ogg",
243  PATH_FIRE, "meteor", NULL},
244 
245  {"meteor swarm",
246  5, 42, 2, 0, 3, 1.0,
247  4, 10, 4, 8, 6, "magic_rstrike.ogg",
249  PATH_FIRE, "meteor", NULL},
250 
251  {"poison fog",
252  18, 86, 2, 0, 3, 1.0,
253  0, 0, 0, 0, 0, "magic_stat.ogg",
255  PATH_WOUNDING, NULL, NULL},
256 
257  {"bullet swarm",
258  5, 86, 2, 0, 3, 1.0,
259  0, 0, 0, 0, 9, "magic_bullet1.ogg",
261  PATH_MISSILE, "bullet", NULL},
262 
263  {"bullet storm",
264  4, 86, 2, 0, 3, 1.0,
265  0, 0, 0, 0, 9, "magic_bullet1.ogg",
267  PATH_MISSILE, "bullet", NULL},
268 
269  {"destruction",
270  20, 20, 0, 3, 3, 1.0,
271  4, 1, 3, 20, 24, "magic_destruction.ogg",
273  PATH_WOUNDING, "spellobject_destruction", NULL},
274 
275  {"create bomb",
276  10, 30, 2, 0, 3, 1.0,
277  10, 9, 0, 30, 9, "magic_bomb.ogg",
279  PATH_DETONATE, NULL, NULL},
280 
281  {"cure confusion",
282  5, 8, 3, 6, 4, 1.0,
283  0, 0, 0, 0, 0, "magic_stat.ogg",
285  PATH_RESTORE, "meffect_purple", NULL},
286 
287  {"transform wealth",
288  18, 40, 2, 7, 0, 1.0,
289  0, 0, 0, 0, 0, "magic_turn.ogg",
291  PATH_TRANSMUTE, NULL, NULL},
292 
293  {"magic missile",
294  3, 8, 3, 6, 9, 1.0,
295  5, 5, 4, 4, 9, "magic_missile.ogg",
297  PATH_MISSILE, "magic_missile", NULL},
298 
299  {"rain of healing",
300  6, 18, 0, 0, 0, 1.0,
301  0, 0, 0, 0, 0, "magic_stat.ogg",
303  PATH_RESTORE, "meffect_green", NULL},
304 
305  {"party heal",
306  6, 16, 0, 0, 0, 1.0,
307  0, 0, 0, 0, 0, "magic_stat.ogg",
309  PATH_RESTORE, "meffect_green", NULL},
310 
311  {"frostbolt",
312  5, 8, 3, 6, 0, 1.0,
313  5, 7, 4, 0, 9, "magic_ice.ogg",
315  PATH_FROST, "frostbolt", NULL},
316 
317  {"firebolt",
318  5, 8, 3, 6, 0, 1.0,
319  5, 7, 4, 0, 9, "magic_fire.ogg",
321  PATH_FIRE, "firebolt", NULL},
322 
323  {"lightning",
324  5, 8, 3, 6, 0, 1.0,
325  5, 7, 4, 0, 9, "magic_elec.ogg",
327  PATH_ELEC, "lightning", NULL},
328 
329  {"forked lightning",
330  5, 8, 3, 6, 0, 1.0,
331  5, 4, 4, 8, 9, "magic_elec.ogg",
333  PATH_ELEC, "forked_lightning", NULL},
334 
335  {"negative energy bolt",
336  5, 8, 3, 6, 0, 1.0,
337  12, 5, 4, 8, 9, "magic_elec.ogg",
339  PATH_DEATH, "negabolt", NULL},
340 
341  {"holy word",
342  6, 12, 0, 0, 0, 1.0,
343  3, 6, 4, 4, 9, "magic_hword.ogg",
345  PATH_TURNING, "holyword", NULL}
346 };
347 
349 const char *const spellpathnames[NRSPELLPATHS] = {
350  "Protection",
351  "Fire",
352  "Frost",
353  "Electricity",
354  "Missiles",
355  "Self",
356  "Summoning",
357  "Abjuration",
358  "Restoration",
359  "Detonation",
360  "Mind",
361  "Creation",
362  "Teleportation",
363  "Information",
364  "Transmutation",
365  "Transference",
366  "Turning",
367  "Wounding",
368  "Death",
369  "Light"
370 };
371 
372 #endif
#define PATH_TURNING
Definition: spells.h:70
#define SPELL_USE_CAST
Definition: spells.h:87
#define SPELL_DESC_ENEMY
Definition: spells.h:124
#define NRSPELLPATHS
Definition: define.h:666
#define PATH_CREATE
Definition: spells.h:60
#define NROFREALSPELLS
Definition: define.h:664
#define SPELL_DESC_DIRECTION
Definition: spells.h:118
#define PATH_SELF
Definition: spells.h:48
#define SPELL_USE_POTION
Definition: spells.h:101
#define SPELL_DESC_SELF
Definition: spells.h:120
const char *const spellpathnames[NRSPELLPATHS]
Definition: spellist.h:349
#define PATH_SUMMON
Definition: spells.h:50
#define PATH_TRANSMUTE
Definition: spells.h:66
#define PATH_RESTORE
Definition: spells.h:54
#define PATH_FIRE
Definition: spells.h:40
#define PATH_WOUNDING
Definition: spells.h:72
#define PATH_MISSILE
Definition: spells.h:46
#define PATH_INFO
Definition: spells.h:64
#define SPELL_USE_SCROLL
Definition: spells.h:93
#define SPELL_USE_BALM
Definition: spells.h:89
#define SPELL_DESC_TOWN
Definition: spells.h:116
#define PATH_PROT
Definition: spells.h:38
#define SPELL_USE_ROD
Definition: spells.h:99
spell_struct spells[NROFREALSPELLS]
Definition: spellist.h:34
#define PATH_DETONATE
Definition: spells.h:56
#define SPELL_USE_DUST
Definition: spells.h:91
#define PATH_FROST
Definition: spells.h:42
#define SPELL_USE_WAND
Definition: spells.h:97
#define PATH_DEATH
Definition: spells.h:74
#define PATH_TELE
Definition: spells.h:62
#define PATH_ELEC
Definition: spells.h:44
#define SPELL_DESC_FRIENDLY
Definition: spells.h:122
#define PATH_MIND
Definition: spells.h:58