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

Comparing deliantra/server/include/spellist.h (file contents):
Revision 1.5 by root, Tue Aug 29 08:01:36 2006 UTC vs.
Revision 1.6 by root, Sat Sep 16 22:06:17 2006 UTC

1/*
2 * static char *rcsid_spellist_h =
3 * "$Id: spellist.h,v 1.5 2006/08/29 08:01:36 root Exp $";
4 */
5
6/* 1/*
7 CrossFire, A Multiplayer game for X-windows 2 CrossFire, A Multiplayer game for X-windows
8 3
9 Copyright (C) 1994 Mark Wedel 4 Copyright (C) 1994 Mark Wedel
10 5
25 The author can be reached via e-mail to mark@pyramid.com 20 The author can be reached via e-mail to mark@pyramid.com
26*/ 21*/
27 22
28#include "spells.h" 23#include "spells.h"
29 24
30#if 0 25const char *const spellpathnames[NRSPELLPATHS] =
31All those variables aren't used anymore.
32
33spell spells[NROFREALSPELLS]={
34/* name,lvl,sp,charges,time,scrolls[nr,chance],book-chance,rng,defensive,cleric,self
35 path, other arch*/
36{"magic bullet", 1, 1, 99, 2, 0, 0, 10, 1, 0, 0, 0,
37 PATH_MISSILE, "bullet",}, /* 0 */
38{"small fireball", 1, 6, 40, 5, 0, 0, 8, 1, 0, 0, 0,
39 PATH_FIRE, "firebullet_s",},
40{"medium fireball", 3,10, 20, 10, 0, 0, 6, 1, 0, 0, 0,
41 PATH_FIRE, "firebullet_m",},
42{"large fireball", 5,16, 10, 15, 0, 0, 2, 1, 0, 0, 0,
43 PATH_FIRE, "firebullet_l",},
44{"burning hands", 1, 5, 20, 5, 0, 0, 8, 1, 0, 0, 0,
45 PATH_FIRE, "firebreath",},
46{"small lightning", 1, 6, 40, 5, 0, 0, 8, 1, 0, 0, 0,
47 PATH_ELEC, "lightning_s",},
48{"large lightning", 4, 13, 20, 12, 0, 0, 3, 1, 0, 0, 0,
49 PATH_ELEC, "lightning_l",},
50{"magic missile", 1, 1, 75, 3, 0, 0, 8, 1, 0, 0, 0,
51 PATH_MISSILE, "magic_missile",},
52{"create bomb", 6,10, 5, 20, 1, 1, 3, 1, 1, 0, 0,
53 PATH_DETONATE, "bomb",},
54{"summon golem", 2, 5, 10, 30, 1, 1, 8, 1, 1, 0, 0,
55 PATH_SUMMON, "golem",},
56{"summon fire elemental", 7,25, 4, 40, 1, 1, 2, 1, 1, 0, 0,
57 PATH_SUMMON, "fire_elemental",}, /* 10 */
58{"summon earth elemental", 4,15, 10, 40, 1, 1, 3, 1, 1, 0, 0,
59 PATH_SUMMON, "earth_elemental",},
60{"summon water elemental", 5,15, 8, 40, 1, 1, 4, 1, 1, 0, 0,
61 PATH_SUMMON, "water_elemental",},
62{"summon air elemental", 6,20, 6, 40, 1, 1, 5, 1, 1, 0, 0,
63 PATH_SUMMON, "air_elemental",},
64{"dimension door", 10,25, 8, 1, 0, 0, 1, 1, 0, 0, 0,
65 PATH_TELE, "enchantment",},
66{"create earth wall", 4, 6, 12, 30, 0, 0, 6, 1, 1, 0, 0,
67 PATH_CREATE, "earthwall",},
68{"paralyze", 2, 5, 40, 8, 0, 0, 8, 1, 0, 0, 0,
69 PATH_NULL, "paralyze",},
70{"icestorm", 1, 5, 15, 8, 0, 0, 4, 1, 0, 0, 0,
71 PATH_FROST, "icestorm",},
72{"magic mapping", 5,15, 20, 1, 2, 8, 5, 0, 0, 0, 1,
73 PATH_INFO, "enchantment",},
74{"turn undead", 1, 2, 40, 5, 0, 0, 8, 1, 0, 1, 0,
75 PATH_TURNING, "turn_undead",},
76{"fear", 4, 6, 25, 5, 0, 0, 5, 1, 0, 0, 0,
77 PATH_MIND, "fear",}, /* 20 */
78{"poison cloud", 2, 5, 30, 10, 0, 0, 6, 1, 0, 0, 0,
79 PATH_MISSILE, "spellball",},
80{"wonder", 3,10, 20, 0, 0, 0, 0, 1, 0, 0, 0,
81 PATH_TRANSMUTE, "flowers",},
82{"destruction", 18,30, 0, 20, 3, 10, 1, 1, 0, 0, 1,
83 PATH_NULL, "destruction",},
84{"perceive self", 2, 5, 20, 0, 2, 2, 0, 0, 0, 1, 1,
85 PATH_INFO, "enchantment",},
86{"word of recall", 10,40, 3, 50, 1, 2, 1, 0, 0, 1, 1,
87 PATH_TELE, "enchantment",},
88{"invisible", 6,15, 0, 5, 3, 2, 4, 1, 1, 0, 1,
89 PATH_NULL, "enchantment",},
90{"invisible to undead", 6,25, 0, 5, 1, 2, 2, 1, 1, 1, 1,
91 PATH_NULL, "enchantment",},
92{"probe", 1, 3, 40, 2, 0, 0, 6, 1, 0, 0, 0,
93 PATH_INFO, NULL,},
94{"large bullet", 4, 3, 33, 6, 0, 0, 4, 1, 0, 0, 0,
95 PATH_MISSILE, "lbullet",},
96{"improved invisibility", 8,25, 0, 10, 1, 1, 1, 1, 1, 0, 1,
97 PATH_NULL, "enchantment",}, /* 30 */
98{"holy word", 1, 4, 0, 1, 0, 0, 4, 1, 0, 1, 0,
99 PATH_TURNING, "holy_word",},
100{"minor healing", 1, 4, 40, 3, 0, 0, 9, 1, 1, 1, 1,
101 PATH_RESTORE, "healing",},
102{"medium healing", 4, 7, 20, 6, 0, 0, 5, 1, 1, 1, 1,
103 PATH_RESTORE, "healing",},
104{"major healing", 8,10, 12, 9, 0, 0, 3, 1, 1, 1, 1,
105 PATH_RESTORE, "healing",},
106{"heal", 10,50, 5, 12, 0, 0, 1, 1, 1, 1, 1,
107 PATH_RESTORE, "healing",},
108{"create food", 6, 10, 0, 20, 0, 0, 4, 1, 1, 1, 0,
109 PATH_CREATE, "food",},
110{"earth to dust", 2, 5, 0, 30, 0, 0, 2, 1, 1, 0, 0,
111 PATH_NULL, "destruction",},
112{"armour", 1, 8, 0, 20, 3, 2, 8, 1, 1, 0, 1,
113 PATH_SELF, "enchantment",},
114{"strength", 2,10, 0, 20, 3, 2, 6, 1, 0, 0, 1,
115 PATH_SELF, "enchantment",},
116{"dexterity", 3,12, 0, 20, 3, 2, 4, 1, 0, 0, 1,
117 PATH_SELF, "enchantment",}, /* 40 */
118{"constitution", 4,15, 0, 20, 3, 2, 4, 1, 1, 0, 1,
119 PATH_SELF, "enchantment",},
120{"charisma", 3,12, 0, 20, 0, 0, 4, 1, 0, 0, 1,
121 PATH_SELF, "enchantment",},
122{"create fire wall", 6, 5, 0, 10, 0, 0, 3, 1, 1, 0, 0,
123 PATH_CREATE, "firebreath",},
124{"create frost wall", 8, 8, 0, 10, 0, 0, 2, 1, 1, 0, 0,
125 PATH_CREATE, "icestorm",},
126{"protection from cold", 3,15, 0, 10, 1, 1, 3, 1, 1, 1, 1,
127 PATH_PROT, "protection",},
128{"protection from electricity", 4,15, 0, 10, 1, 1, 3, 1, 1, 1, 1,
129 PATH_PROT, "protection",},
130{"protection from fire", 5,20, 0, 10, 1, 1, 2, 1, 1, 1, 1,
131 PATH_PROT, "protection",},
132{"protection from poison", 6,20, 0, 10, 1, 1, 2, 1, 1, 1, 1,
133 PATH_PROT, "protection",},
134{"protection from slow", 7,20, 0, 10, 1, 1, 2, 1, 1, 1, 1,
135 PATH_PROT, "protection",},
136{"protection from paralysis", 8,20, 0, 10, 1, 1, 2, 1, 1, 1, 1,
137 PATH_PROT, "protection",}, /* 50 */
138{"protection from draining", 9,25, 0, 30, 1, 1, 2, 1, 1, 1, 1,
139 PATH_PROT, "protection",},
140{"protection from magic", 10,30, 0, 30, 1, 1, 1, 1, 1, 1, 1,
141 PATH_PROT, "protection",},
142{"protection from attack", 13,50, 0, 50, 1, 1, 1, 1, 1, 1, 1,
143 PATH_PROT, "protection",},
144{"levitate", 6,10, 0, 10, 1, 1, 2, 0, 0, 0, 1,
145 PATH_NULL, "enchantment",},
146{"small speedball", 3, 3, 0, 20, 0, 0, 0, 1, 0, 0, 0,
147 PATH_MISSILE, "speedball",},
148{"large speedball", 6, 6, 0, 40, 0, 0, 0, 1, 0, 0, 0,
149 PATH_MISSILE, "speedball",},
150{"hellfire", 8,13, 0, 30, 0, 0, 0, 1, 0, 0, 0,
151 PATH_FIRE, "hellfire",},
152{"dragonbreath", 12, 13, 0, 30, 0, 0, 0, 1, 0, 0, 0,
153 PATH_FIRE, "firebreath",},
154{"large icestorm", 12,13, 0, 40, 0, 0, 0, 1, 0, 0, 0,
155 PATH_FROST, "icestorm",},
156{"charging", 10,200, 0, 75, 1, 1, 0, 0, 0, 0, 1,
157 PATH_TRANSFER, "enchantment",}, /* 60 */
158#ifdef NO_POLYMORPH
159/* Disable it from appearing in wands/rods */
160{"polymorph", 6,20, 0, 30, 0, 0, 0, 1, 0, 0, 0,
161 PATH_TRANSMUTE, "polymorph",},
162#else
163{"polymorph", 6,20, 10, 30, 0, 0, 0, 1, 0, 0, 0,
164 PATH_TRANSMUTE, "polymorph",},
165#endif
166{"cancellation", 10,30, 10, 10, 0, 0, 1, 1, 0, 0, 0,
167 PATH_ABJURE, "cancellation",},
168{"confusion", 2,10, 0, 10, 3, 2, 7, 0, 0, 0, 0,
169 PATH_MIND, "confuse",},
170{"mass confusion", 7,20, 15, 20, 0, 0, 3, 1, 0, 0, 0,
171 PATH_MIND, "confuse",},
172{"summon pet monster", 2, 5, 15, 40, 3, 1, 8, 1, 0, 0, 0,
173 PATH_SUMMON, NULL,},
174{"slow", 1, 5, 30, 5, 0, 0, 7, 1, 0, 0, 0,
175 PATH_NULL, "slow",},
176{"regenerate spellpoints", 99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
177 PATH_RESTORE, NULL,},
178{"cure poison", 4, 7, 0, 10, 0, 0, 5, 1, 1, 1, 1,
179 PATH_RESTORE, "healing",},
180{"protection from confusion", 7,20, 0, 10, 1, 1, 2, 1, 1, 1, 1,
181 PATH_PROT, "protection",},
182{"protection from cancellation",11,30, 0, 10, 1, 1, 2, 1, 1, 1, 1,
183 PATH_PROT, "protection",}, /* 70 */
184{"protection from depletion", 7,20, 0, 10, 1, 1, 2, 1, 1, 1, 1,
185 PATH_PROT, "protection",},
186{"alchemy", 3, 5, 0, 15, 3, 2, 7, 1, 0, 0, 1,
187 PATH_TRANSMUTE, "enchantment",},
188{"remove curse", 8,80, 0,100, 1, 3, 1, 1, 0, 1, 1,
189 PATH_RESTORE, "protection",},
190{"remove damnation", 15,200, 0,200, 1, 1, 0, 1, 0, 1, 1,
191 PATH_RESTORE, "protection",},
192{"identify", 8,60, 0,200, 9,10, 5, 1, 0, 0, 1,
193 PATH_INFO, "enchantment",},
194{"detect magic", 1, 1, 50, 13, 3, 8, 10, 1, 0, 0, 1,
195 PATH_INFO, "detect_magic",},
196{"detect monster", 2, 2, 0, 15, 3, 6, 8, 1, 1, 0, 1,
197 PATH_INFO, "detect_magic",},
198{"detect evil", 3, 3, 0, 15, 3, 5, 8, 1, 1, 1, 1,
199 PATH_INFO, "detect_magic",},
200{"detect curse", 5,10, 0, 20, 3, 5, 1, 1, 0, 1, 1,
201 PATH_INFO, "detect_magic",},
202{"heroism", 10,50, 0, 10, 0, 0, 0, 1, 0, 0, 1,
203 PATH_SELF, "enchantment",}, /* 80 */
204{"aggravation", 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0,
205 PATH_NULL, NULL,},
206{"firebolt", 2, 9, 35, 10, 0, 0, 4, 1, 0, 0, 0,
207 PATH_FIRE, "firebolt",},
208{"frostbolt", 3,12, 30, 10, 0, 0, 3, 1, 0, 0, 0,
209 PATH_FROST, "frostbolt",},
210{"shockwave", 14,26, 0, 20, 0, 0, 0, 1, 0, 0, 0,
211 PATH_NULL, "shockwave",},
212{"color spray", 13,35, 0, 15, 0, 0, 0, 1, 0, 0, 0,
213 PATH_NULL, "color_spray",},
214{"haste", 12,50, 0, 10, 0, 0, 0, 1, 0, 0, 1,
215 PATH_SELF, "enchantment",},
216{"face of death", 22, 80, 0, 15, 0, 0, 0, 1, 0, 1, 0,
217 PATH_DEATH, "face_of_death",},
218{"ball lightning", 9,10, 30, 30, 1, 9, 0, 1, 0, 0, 0,
219 PATH_ELEC, "ball_lightning",},
220{"meteor swarm", 12,30, 0, 30, 0, 0, 0, 1, 0, 0, 0,
221 PATH_MISSILE, "meteor",},
222{"comet", 8,15, 0, 20, 0, 0, 0, 1, 0, 0, 0,
223 PATH_MISSILE, NULL,}, /* 90 */
224{"mystic fist", 5,10, 0, 15, 0, 0, 1, 1, 0, 0, 0,
225 PATH_SUMMON, "mystic_fist",},
226{"raise dead", 10,150, 0, 60, 0, 0, 0, 1, 0, 1, 0,
227 PATH_RESTORE, "enchantment",},
228{"resurrection", 20,250, 0, 180, 0, 0, 0, 0, 0, 1, 0,
229 PATH_RESTORE, "enchantment",},
230{"reincarnation", 25,350, 0,100, 0, 0, 0, 0, 0, 1, 0,
231 PATH_RESTORE, "enchantment",},
232/* mlee - Keep these spells 0 book chance, as they are low level quest items.*/
233/* raised the grace value on some immuntity spells -b.t. */
234 /* keep them path_null, that prevents them being given out by praying*/
235{"immunity to cold", 6, 60, 0, 10, 0, 0, 0, 1, 1, 1, 1,
236 PATH_NULL, "protection",},
237{"immunity to electricity", 8, 65, 0, 10, 0, 0, 0, 1, 1, 1, 1,
238 PATH_NULL, "protection",},
239{"immunity to fire", 10,70, 0, 10, 0, 0, 0, 1, 1, 1, 1,
240 PATH_NULL, "protection",},
241{"immunity to poison", 12,60, 0, 10, 0, 0, 0, 1, 1, 1, 1,
242 PATH_NULL, "protection",},
243{"immunity to slow", 14,60, 0, 10, 0, 0, 0, 1, 1, 1, 1,
244 PATH_NULL, "protection",},
245{"immunity to paralysis", 16,60, 0, 10, 0, 0, 0, 1, 1, 1, 1,
246 PATH_NULL, "protection",}, /*100*/
247{"immunity to draining", 18,75, 0, 10, 0, 0, 0, 1, 1, 1, 1,
248 PATH_NULL, "protection",},
249{"immunity to magic", 20,150, 0, 30, 0, 0, 0, 1, 1, 1, 1,
250 PATH_NULL, "protection",},
251{"immunity to attack", 26,170, 0, 50, 0, 0, 0, 1, 1, 1, 1,
252 PATH_NULL, "protection",},
253/* set the path to PATH_NULL so god_intervention wont hand out this spell */
254{"invulnerability", 80,225, 0, 30, 0, 0, 0, 1, 1, 1, 1,
255 PATH_NULL, "protection",},
256{"defense", 40,75, 0, 30, 0, 0, 0, 1, 1, 1, 1,
257 PATH_PROT, "protection",},
258{"rune of fire", 4,10, 0, 30, 0, 0, 5, 1, 0, 0, 0,
259 PATH_FIRE, "rune_fire",},
260{"rune of frost", 6,12, 0, 30, 0, 0, 4, 1, 0, 0, 0,
261 PATH_FROST, "rune_frost",},
262{"rune of shocking", 8,14, 0, 30, 0, 0, 3, 1, 0, 0, 0,
263 PATH_ELEC, "rune_shock",},
264{"rune of blasting", 10,18, 0, 30, 0, 0, 2, 1, 0, 0, 0,
265 PATH_DETONATE, "rune_blast",},
266{"rune of death", 17,20, 0, 40, 0, 0, 1, 1, 0, 0, 0,
267 PATH_DEATH, "rune_death",}, /*110*/
268{"marking rune", 1,2, 0, 10, 0, 0, 5, 0, 0, 0, 0,
269 PATH_NULL, "rune_mark",},
270{"build director", 10,30, 0, 30, 0, 0, 1, 1, 0, 0, 0,
271 PATH_CREATE, NULL,},
272{"create pool of chaos", 10,10, 10, 15, 0, 0, 1, 1, 0, 0, 0,
273 PATH_CREATE, "color_spray",},
274{"build bullet wall", 12,35, 0, 35, 0, 0, 1, 1, 0, 0, 0,
275 PATH_CREATE, NULL,},
276{"build lightning wall", 14,40, 0, 40, 0, 0, 1, 1, 0, 0, 0,
277 PATH_CREATE, NULL,},
278{"build fireball wall", 16,45, 0, 45, 0, 0, 1, 1, 0, 0, 0,
279 PATH_CREATE, NULL,},
280{"magic rune", 12,5, 0, 30, 0, 0, 1, 0, 0, 0, 0,
281 PATH_CREATE, "generic_rune",},
282{"rune of magic drain", 14,30, 0, 30, 0, 0, 0, 1, 0, 0, 0,
283 PATH_TRANSFER, "rune_drain_magic",},
284{"antimagic rune", 7,5, 0, 20, 0, 0, 1, 1, 0, 0, 0,
285 PATH_ABJURE, "rune_antimagic",},
286{"rune of transferrence", 6,12, 0, 40, 0, 0, 1, 1, 0, 0, 0,
287 PATH_TRANSFER, "rune_transferrence",}, /*120*/
288{"transferrence", 5,10, 0, 20, 0, 0, 1, 1, 0, 0, 0,
289 PATH_TRANSFER, "enchantment",},
290{"magic drain", 12,20, 0, 1, 0, 0, 1, 1, 0, 0, 0,
291 PATH_TRANSFER, "enchantment",},
292{"counterspell", 3,10, 20, 0, 0, 0, 1, 1, 0, 0, 0,
293 PATH_ABJURE, "counterspell",},
294{"disarm", 4,7, 0, 30, 0, 0, 1, 1, 0, 0, 0,
295 PATH_ABJURE, "enchantment",},
296{"cure confusion", 7,8, 0, 15, 1, 4, 1, 1, 0, 1, 1,
297 PATH_RESTORE, "healing",},
298{"restoration", 13,80, 0, 30, 1, 1, 1, 1, 0, 1, 1,
299 PATH_RESTORE, "healing",},
300{"summon evil monster", 8,8, 0, 30, 0, 0, 0, 0, 0, 0, 0,
301 PATH_SUMMON, NULL,},
302{"counterwall", 8, 8, 30, 30, 0, 0, 1, 1, 0, 0, 0,
303 PATH_RESTORE, "counterspell",},
304{"cause light wounds", 1, 4, 0, 5, 0, 0, 2, 1, 0, 1, 0,
305 PATH_WOUNDING,"cause_wounds",},
306{"cause medium wounds", 3, 8, 0, 5, 0, 0, 2, 1, 0, 1, 0,
307PATH_WOUNDING,"cause_wounds",}, /* 130 */
308{"cause serious wounds", 5, 16, 0, 5, 0, 0, 2, 1, 0, 1, 0,
309PATH_WOUNDING,"cause_wounds",},
310{"charm monsters", 5, 20, 0, 10, 0, 0, 1, 1, 0, 0, 0,
311PATH_MIND,"enchantment",},
312{"banishment", 5, 10, 3, 10, 1, 1, 1, 1, 0, 1, 0,
313PATH_TURNING,"banishment",},
314{"create missile", 1,5, 0, 20, 1, 1, 1, 1, 0, 0, 0,
315PATH_CREATE,"enchantment",},
316{"show invisible", 7,10, 4, 20, 1, 1, 1, 1, 1, 1, 0,
317PATH_INFO,"enchantment",},
318{"xray", 10,20, 0, 20, 1, 1, 1, 1, 0, 0, 0,
319PATH_INFO,"enchantment",},
320{"pacify", 4, 10, 1, 2, 0, 0, 3, 1, 0, 1, 0,
321PATH_MIND,"enchantment",},
322{"summon fog", 2, 5, 10, 10, 0, 0, 2, 1, 0, 0, 0,
323PATH_CREATE,"fog",},
324{"steambolt", 5, 10, 10, 10, 0, 0, 1, 1, 0, 0, 0,
325PATH_FIRE, "steambolt",},
326{"command undead", 4, 12, 0, 10, 0, 0, 3, 1, 0, 1, 0,
327PATH_MIND,"enchantment",}, /* 140 */
328{"holy orb", 7, 12, 0, 5, 0, 0, 3, 1, 0, 1, 0,
329PATH_TURNING,"holy_orb",},
330/* most of the next 13 spells work best if MULTIPLE_GODS is defined. -b.t. */
331{"summon avatar", 10, 60, 0, 15, 0, 0, 1, 1, 0, 1, 0,
332 PATH_SUMMON, "avatar",},
333{"holy possession", 9, 30, 0, 10, 0, 0, 1, 1, 0, 1, 0,
334 PATH_ABJURE, "enchantment",},
335{"bless", 2, 8, 0, 5, 0, 0, 3, 1, 0, 1, 0,
336 PATH_ABJURE, "enchantment",},
337{"curse", 2, 8, 0, 5, 0, 0, 2, 1, 0, 1, 0,
338 PATH_ABJURE, "enchantment",},
339{"regeneration", 7, 15, 0, 10, 0, 0, 1, 1, 0, 1, 0,
340 PATH_ABJURE, "enchantment",},
341/* consecrate spell has no use w/o MULTIPLE_GODS defined. We make book=0
342 * in that case -b.t. */
343{"consecrate", 4, 35, 0, 50, 0, 0, 1, 1, 0, 1, 0,
344 PATH_ABJURE, "enchantment",},
345{"summon cult monsters", 3, 12, 0, 10, 0, 0, 2, 1, 0, 1, 0,
346 PATH_SUMMON, NULL,},
347{"cause critical wounds", 7, 25, 0, 5, 0, 0, 0, 1, 0, 1, 0,
348 PATH_WOUNDING,"cause_wounds",},
349{"holy wrath", 14, 40, 0, 5, 0, 0, 1, 1, 0, 1, 0,
350 PATH_TURNING,"holy_wrath",}, /* 150 */
351{"retributive strike", 26, 150, 0, 15, 0, 0, 0, 1, 0, 1, 0,
352 PATH_WOUNDING,"god_power",},
353{"finger of death", 15, 50, 0, 5, 0, 0, 0, 1, 0, 1, 0,
354 PATH_DEATH, NULL,},
355{"insect plague", 12, 40, 0, 5, 0, 0, 0, 1, 0, 1, 0,
356 PATH_SUMMON,"insect_plague",},
357{"call holy servant", 5, 30, 0, 5, 0, 0, 3, 1, 0, 1, 0,
358 PATH_SUMMON, "holy_servant",},
359{"wall of thorns", 6, 20, 0, 5, 0, 0, 0, 0, 0, 1, 0,
360 PATH_CREATE, "thorns"},
361{"staff to snake", 2, 8, 0, 5, 0, 0, 1, 1, 0, 1, 0,
362 PATH_CREATE, "snake_golem"},
363{"light", 1, 8, 20, 5, 0, 0, 3, 1, 0, 1, 0,
364 PATH_LIGHT, "light"},
365{"darkness", 5, 15, 10, 5, 0, 0, 1, 1, 0, 1, 0,
366 PATH_LIGHT, "darkness"},
367{"nightfall", 16, 120, 0, 15, 0, 0, 0, 1, 0, 1, 0,
368 PATH_LIGHT, NULL},
369{"daylight", 18, 120, 0, 15, 0, 0, 0, 1, 0, 1, 0,
370 PATH_LIGHT, NULL}, /* 160 */
371{"sunspear", 6, 8, 35, 8, 0, 0, 0, 1, 0, 1, 0,
372 PATH_LIGHT, "sunspear"},
373{"faery fire", 4, 10, 0, 15, 3, 2, 2, 1, 0, 0, 0,
374 PATH_LIGHT, NULL},
375{"cure blindness", 9, 30, 0, 10, 1, 1, 2, 1, 1, 1, 1,
376 PATH_RESTORE, "healing",},
377{"dark vision", 5, 10, 0, 12, 3, 2, 2, 1, 0, 0, 0,
378 PATH_INFO, NULL},
379{"bullet swarm", 7, 6, 0, 5, 0, 0, 1, 1, 0, 0, 0,
380 PATH_MISSILE,"bullet"},
381{"bullet storm", 10, 8, 0, 5, 0, 0, 1, 1, 0, 0, 0,
382 PATH_MISSILE,"lbullet"},
383{"cause many wounds", 12, 30, 0, 5, 0, 0, 0, 1, 0, 1, 0,
384 PATH_WOUNDING,"cause_wounds"},
385{"small snowstorm", 1, 6, 40, 5, 0, 0, 8, 1, 0, 0, 0,
386 PATH_FROST, "snowball_s",},
387{"medium snowstorm", 3,10, 20, 10, 0, 0, 6, 1, 0, 0, 0,
388 PATH_FROST, "snowball_m",},
389{"large snowstorm", 5,16, 10, 15, 0, 0, 2, 1, 0, 0, 0,
390 PATH_FROST, "snowball_l",}, /* 170 */
391{"cure disease", 5,30, 0, 10, 3, 5, 1, 0, 0, 1, 1,
392 PATH_RESTORE,NULL},
393{"cause red death", 12,100, 0, 10, 0, 0, 0, 1, 0, 1, 0,
394 PATH_WOUNDING,"ebola"},
395{"cause flu", 2, 10, 5, 10, 3, 2, 5, 1, 0, 1, 0,
396 PATH_WOUNDING,"flu"},
397{"cause black death", 15, 120, 0, 10, 0, 0, 0, 1, 0, 1, 0,
398 PATH_NULL,"bubonic_plague"},
399{"cause leprosy", 5, 20, 0, 10, 1, 1, 5, 1, 0, 1, 0,
400 PATH_WOUNDING,"leprosy"},
401{"cause smallpox", 10, 85, 0, 10, 0, 0, 0, 1, 0, 1, 0,
402 PATH_WOUNDING,"smallpox"},
403{"cause white death", 85,350, 0, 10, 0, 0, 0, 1, 0, 1, 0,
404 PATH_WOUNDING,"pneumonic_plague"},
405{"cause anthrax", 12, 50, 0, 10, 1, 1, 1, 1, 0, 1, 0,
406 PATH_WOUNDING,"anthrax"},
407{"cause typhoid", 8, 60, 0, 10, 1, 1, 1, 1, 0, 1, 0,
408 PATH_WOUNDING,"typhoid"},
409{"mana blast", 8, 10, 0, 15, 0, 0, 2, 1, 0, 0, 0,
410 PATH_TRANSFER, "manablast", }, /* 180 */
411{"small manaball", 4, 12, 0, 9, 0, 0, 3, 1, 0, 0, 0,
412 PATH_TRANSFER, "manabullet_s", },
413{"medium manaball", 7, 20, 0, 18, 0, 0, 2, 1, 0, 0, 0,
414 PATH_TRANSFER, "manabullet_m", },
415{"large manaball", 10, 32, 0, 27, 0, 0, 1, 1, 0, 0, 0,
416 PATH_TRANSFER, "manabullet_l", },
417{"mana bolt", 5, 18, 0, 9, 0, 0, 2, 1, 0, 0, 0,
418 PATH_TRANSFER, "manabolt", },
419{"dancing sword", 11, 25, 0, 10, 0, 0, 1, 0, 0, 0, 0, /* 185 */
420 PATH_CREATE, "dancingsword", },
421{"animate weapon", 7, 25, 0, 10, 0, 0, 4, 0, 0, 0, 0,
422 PATH_TELE, "dancingsword", },
423{"cause cold", 2, 10, 5, 10, 3, 2, 5, 1, 0, 1, 0, /* 187 */
424 PATH_WOUNDING,"disease_cold"},
425{"divine shock", 1, 3, 0, 10, 0, 0, 0, 1, 0, 1, 0,
426 PATH_WOUNDING,"divine_shock"},
427{"windstorm", 3,3, 0, 10, 0, 0, 0, 1, 0, 1, 0,
428 PATH_NULL, "windstorm",},
429{"sanctuary", 7, 30, 0, 10, 0, 0, 0, 0, 1, 1, 1, /* 190 */
430 PATH_PROT,"sanctuary"},
431{"peace", 20, 80, 0, 10, 0, 0, 0, 1, 0, 1, 0,
432 PATH_PROT,"peace"},
433{"spiderweb", 4, 10, 0, 10, 0, 0, 0, 1, 0, 1, 0,
434 PATH_CREATE,"spiderweb_spell"},
435{"conflict", 10, 50, 0, 10, 0, 0, 0, 1, 0, 1, 0,
436 PATH_MIND, "enchantment"},
437{"rage", 1, 5, 0, 10, 0, 0, 0, 1, 0, 1, 1,
438 PATH_WOUNDING, "enchantment"},
439{"forked lightning", 5, 15, 0, 10, 0, 0, 0, 1, 0, 1, 0, /* 195 */
440 PATH_ELEC, "forked_lightning"},
441{"poison fog", 5, 15, 0, 10, 0, 0, 0, 1, 0, 1, 0,
442 PATH_WOUNDING, "poison_fog"},
443{"flaming aura", 1, 5, 0, 10, 0, 0, 0, 0, 1, 1, 1,
444 PATH_FIRE, "flaming_aura"},
445{"vitriol", 5, 15, 0, 10, 0, 0, 0, 0, 1, 1, 1,
446 PATH_DETONATE, "vitriol"}, /* not for people to cast. */
447{"vitriol splash", 5, 15, 0, 10, 0, 0, 0, 0, 1, 1, 1,
448 PATH_DETONATE, "vitriol_splash"}, /* not for people to cast. */
449{"ironwood skin", 1, 8, 0, 20, 0, 0, 0, 1, 1, 1, 1, /* 200 */
450 PATH_SELF, "enchantment",},
451{"wrathful eye", 5, 30, 0, 20, 0, 0, 0, 1, 0, 1, 0,
452 PATH_SELF, "wrathful_eye",},
453{"town portal", 8, 30, 0, 10, 0, 0, 1, 0, 0, 0, 1,
454 PATH_TELE, "perm_magic_portal",},
455{"missile swarm", 7, 6, 0, 3, 0, 0, 1, 1, 0, 0, 0,
456 PATH_MISSILE,"magic_missile"},
457{"cause rabies", 12, 120, 0, 10, 0, 0, 0, 1, 0, 1, 0,
458 PATH_WOUNDING,"rabies"},
459{"glyph", 12, 5, 0, 30, 0, 0, 1, 0, 0, 1, 0,
460 PATH_CREATE, "generic_rune",},
461{"asteroid", 8,15, 0, 20, 0, 0, 0, 1, 0, 0, 0,
462 PATH_MISSILE, NULL,},
463{"frost nova", 12,30, 0, 30, 0, 0, 0, 1, 0, 0, 0,
464 PATH_MISSILE, "asteroid",},
465};
466/* name,lvl,sp,charges,time,scrolls[nr,chance],book-chance,rng,defensive,cleric,self
467 path, other arch*/
468
469/* peterm: the following defines the parameters for all the
470spells.
471 bdam: base damage or hp of spell or summoned monster
472 bdur: base duration of spell or base range
473 ldam: levels you need over the min for the spell to gain one dam
474 ldur: levels you need over the min for the spell to gain one dur
475 spl: number of levels beyond minimum for spell point cost to
476 increase by amount equal to base cost. i.e. if base cost
477 is 10 at level 2 and spl is 5, cost will increase by 2 per
478 level. if base cost is 5 and spl is 10, cost increases by
479 1 every 2 levels.
480 the information here is default only. It is over-ridden by
481 entries in LIBDIR/spell_params of the form. Please
482 see spell_params.doc
483
484*/
485
486spell_parameters SP_PARAMETERS[NROFREALSPELLS] =
487{ 26{
488/* bdam bdur ldam ldur spl spell */
489{ 10, 0, 1, 0, 6}, /*magic bullet*/ /* 0 */
490{ 8, 6, 3, 0, 24}, /*small fireball*/
491{ 8, 10, 3, 0, 24}, /*medium fireball*/
492{ 8, 14, 4, 0, 32}, /*large fireball*/
493{ 4, 5, 4, 4, 9}, /*burning hands*/
494{ 8, 8, 3, 0, 24}, /*small lightning*/
495{ 8, 16, 3, 0, 24}, /*large lightning*/
496{ 9, 0, 1, 0, 10}, /*magic missile*/
497{ 12, 8, 6, 0, 72}, /*create bomb*/
498{ 8, 75, 1, 1, 15}, /*summon golem*/
499{ 20, 200, 1, 1, 15}, /*summon fire elemental*/ /* 10 */
500{ 50, 280, 1, 1, 15}, /*summon earth elemental*/
501{ 40, 140, 1, 1, 15}, /*summon water elemental*/
502{ 10, 160, 1, 1, 15}, /*summon air elemental*/
503{ 0, 10, 0, 1, 0}, /*dimension door*/
504{ 0, 32, 0, 1, 0}, /*create earth wall*/
505{ 25, 5, 3, 3, 0}, /*paralyze*/
506{ 4, 6, 3, 5, 9}, /*icestorm*/
507{ 0, 0, 0, 0, 0}, /*magic mapping*/
508{ 0, 3, 0, 4, 12}, /*turn undead*/ /* wis bonus on bdur*/
509{ 5, 4, 0, 3, 12}, /*fear*/ /*cha bonus on bdur */ /*20*/
510{ 0, 0, 3, 0, 8}, /*poison cloud*/
511{ 0, 0, 0, 0, 0}, /*wonder*/
512{ 10, 5, 3, 6, 15}, /*destruction*/ /* dam=10+int */
513{ 0, 0, 0, 0, 0}, /*perceive self*/
514{ 0, 5, 0, 1, 40}, /*word of recall*/
515{ 0, 300, 20, 1, 15}, /*invisible*/
516{ 0, 300, 20, 1, 15}, /*invisible to undead*/
517{ 0, 0, 0, 0, 0}, /*probe*/
518{ 25, 0, 1, 0, 25}, /*large bullet*/
519{ 0, 200, 20, 1, 10}, /*improved invisibility*/ /*30*/
520{ 6, 2, 3, 5, 7}, /*holy word*/ /* bdur+=turn bonus */
521{ 0, 0, 0, 0, 0}, /*minor healing*/
522{ 0, 0, 0, 0, 0}, /*medium healing*/
523{ 0, 0, 0, 0, 0}, /*major healing*/
524{ 0, 0, 0, 0, 0}, /*heal*/
525{ 100, 0, 1, 0, 10}, /*create food*/
526{ 0, 1, 0, 3, 3}, /*earth to dust*/
527{ 0, 0, 5, 4, 8}, /*armour*/
528{ 0, 0, 0, 4, 0}, /*strength*/
529{ 0, 0, 0, 4, 0}, /*dexterity*/ /*40*/
530{ 0, 0, 0, 4, 0}, /*constitution*/
531{ 0, 0, 0, 4, 0}, /*charisma*/
532{ 4, 260, 3, 1, 8}, /*create fire wall*/
533{ 0, 240, 3, 1, 8}, /*create frost wall*/
534{ 0, 0, 0, 4, 40}, /*protection from cold*/
535{ 0, 0, 0, 4, 40}, /*protection from electricity*/
536{ 0, 0, 0, 4, 40}, /*protection from fire*/
537{ 0, 0, 0, 4, 40}, /*protection from poison*/
538{ 0, 0, 0, 4, 40}, /*protection from slow*/
539{ 0, 0, 0, 4, 40}, /*protection from paralysis*//*50*/
540{ 0, 0, 0, 4, 40}, /*protection from draining*/
541{ 0, 0, 0, 4, 40}, /*protection from magic*/
542{ 0, 0, 0, 4, 40}, /*protection from attack*/
543{ 0, 0, 0, 4, 40}, /*levitate*/
544{ 0, 0, 0, 0, 0}, /*small speedball*/
545{ 0, 0, 0, 0, 0}, /*large speedball*/
546{ 8, 12, 4, 0, 24}, /*hellfire*/
547{ 4, 14, 3, 5, 11}, /*dragonbreath*/
548{ 4, 14, 3, 5, 11}, /*large icestorm*/
549{ 0, 0, 0, 0, 0}, /*charging*/ /* 60 */
550{ 0, 0, 0, 0, 0}, /*polymorph*/
551{ 0, 0, 0, 0, 0}, /*cancellation*/
552{ 0, 0, 0, 0, 0}, /*confusion*/
553{ 0, 5, 0, 5, 25}, /*mass confusion*/
554{ 0, 0, 0, 0, 0}, /*summon pet monster*/
555{ 5, 5, 0, 4, 20}, /*slow*/
556{ 0, 0, 0, 0, 0}, /*regenerate spellpoints*/
557{ 0, 0, 0, 0, 0}, /*cure poison*/
558{ 0, 0, 0, 4, 40}, /*protection from confusion*/
559{ 0, 0, 0, 4, 40}, /*protection from cancellation*/ /*70*/
560{ 0, 0, 0, 4, 40}, /*protection from depletion*/
561{ 0, 0, 0, 0, 0}, /*alchemy*/
562{ 0, 0, 0, 0, 16}, /*remove curse*/
563{ 0, 0, 0, 0, 30}, /*remove damnation*/
564{ 0, 0, 0, 0, 0}, /*identify*/
565{ 0, 0, 0, 0, 0}, /*detect magic*/
566{ 0, 0, 0, 0, 0}, /*detect monster*/
567{ 0, 0, 0, 0, 0}, /*detect evil*/
568{ 0, 0, 0, 0, 0}, /*detect curse*/
569{ 0, 0, 0, 0, 0}, /*heroism */ /*80*/
570{ 0, 0, 0, 0, 0}, /*aggravation*/
571{ 10, 9, 3, 0, 30}, /*firebolt*/
572{ 12, 11, 4, 0, 48}, /*frostbolt*/
573{ 10, 18, 3, 5, 25}, /*shockwave*/
574{ 8, 10, 3, 5, 16}, /*color spray*/
575{ 0, 0, 5, 2, 0}, /*haste*/
576{ 0, 4, 0, 9, 36}, /*face of death*/
577{ 8, 40, 3, 1, 15}, /*ball lightning*/
578{ 0, 0, 0, 4, 12}, /*meteor swarm*/
579{ 75, 0, 1, 0, 18}, /*comet*/ /*90*/
580{ 8, 50, 1, 1, 15}, /*mystic fist*/
581{ 0, 0, 0, 0, 0}, /*raise dead*/
582{ 0, 0, 0, 0, 0}, /*resurrection*/
583{ 0, 0, 0, 0, 0}, /*reincarnation*/
584{ 0, 0, 0, 5, 50}, /*immunity to cold*/
585{ 0, 0, 0, 5, 50}, /*immunity to electricity*/
586{ 0, 0, 0, 5, 50}, /*immunity to fire*/
587{ 0, 0, 0, 5, 50}, /*immunity to poison*/
588{ 0, 0, 0, 5, 50}, /*immunity to slow*/
589{ 0, 0, 0, 5, 50}, /*immunity to paralysis*/ /*100*/
590{ 0, 0, 0, 5, 50}, /*immunity to draining*/
591{ 0, 0, 0, 5, 50}, /*immunity to magic*/
592{ 0, 0, 0, 5, 50}, /*immunity to attack*/
593{ 0, 0, 0, 5, 50}, /*invulnerability*/
594{ 0, 0, 0, 5, 50}, /*protection*/
595{ 0, 0, 0, 0, 0}, /* fire rune */
596{ 0, 0, 0, 0, 0}, /* frost rune */
597{ 0, 0, 0, 0, 0}, /* shocking rune */
598{ 0, 0, 0, 0, 0}, /* blasting rune */
599{ 0, 0, 0, 0, 0}, /* death rune */ /*110*/
600{ 0, 0, 0, 0, 0}, /* marking rune */
601{ 80, 200, 1, 1, 10}, /* build director */
602{ 4, 240, 3, 1, 0}, /* chaos pool */
603{ 80, 100, 1, 1, 10}, /* build bullet wall */
604{ 80, 100, 1, 1, 10}, /* build lightning wall */
605{ 80, 100, 1, 1, 10}, /* build fireball wall */
606{ 0, 0, 0, 0, 0}, /* magic rune */
607{ 0, 0, 0, 0, 0}, /* rune of magic drain */
608{ 0, 0, 0, 0, 0}, /* rune of barring magic */
609{ 8, 0, 2, 0, 24}, /* rune of transferrence */ /*120*/
610{ 8, 0, 2, 0, 20}, /* transferrence */
611{ 75, 30, 2, 1, 10}, /* magic drain */
612{ 0, 6, 0, 3, 18}, /* counter-spell */
613{ 0, 0, 0, 0, 0}, /* dispel rune */
614{ 0, 0, 0, 0, 0}, /* cure madness */
615{ 0, 0, 0, 0, 0}, /* restoration */
616{ 0, 0, 0, 0, 0}, /* summon hostile monsters */
617{ 0, 100, 0, 1, 20}, /* counterwall */
618{ 6, 0, 1, 0, 6}, /* cause light wounds */
619{ 24, 0, 1, 0, 24}, /* cause medium wounds */ /* 130 */
620{ 50, 0, 1, 0, 50}, /* cause serious wounds */
621{ 0, 0, 0, 3 , 27}, /* Charm monster */
622{ 0, 4, 0, 9, 36}, /* Banishment */
623{ 0, 5, 6, 2, 5}, /* create missile */
624{ 0, 4, 0, 0, 30}, /* show invisible */
625{ 0, 4, 0, 9, 36}, /* xray vision */
626{ 0, 0, 0, 10, 10}, /* pacify */
627{ 0, 0, 0, 10, 0}, /* summon fog */
628{ 20, 8, 2, 5, 40}, /* steambolt*/
629{ 0, 0, 0, 3 , 27}, /* command undead */ /* 140 */
630{ 25, 8, 4, 0, 10}, /* holy orb */
631{ 50, 300, 1, 1, 15}, /* summon avatar */
632{ 1, 0, 4, 4, 10}, /* holy possesion */
633{ 1, 0, 8, 6, 10}, /* bless */
634{ 1, 0, 8, 6, 10}, /* curse */
635{ 1, 0, 5, 6, 10}, /* regeneration */
636{ 0, 0, 0, 0, 0}, /* consecrate */
637{ 0, 0, 0, 0, 0}, /* summon cult monster*/
638{ 100, 0, 1, 0, 50}, /* cause critical wounds */
639{ 0, 0, 1, 0, 30}, /* holy wrath */ /* 150 */
640{ 0, 0, 1, 0, 30}, /* finger of retribution */
641{ 0, 0, 1, 0, 20}, /* finger of death */
642{ 0, 0, 1, 0, 30}, /* insect plague */
643{ 10, 50, 2, 2, 50}, /* holy servant */
644{ 4, 300, 3, 1, 50}, /* wall of thorns */
645{ 8, 30, 3, 3, 40}, /* staff to snake */
646{ 2, 1000, 20, 1, 10}, /* light */
647{ 10, 50, 2, 2, 50}, /* darkness */
648{ 10, 50, 2, 2, 50}, /* nightfall */
649{ 10, 50, 2, 2, 50}, /* daylight */ /* 160 */
650{ 6, 8, 3, 9, 35}, /* sunspear */
651{ 1, 5, 9, 6, 15}, /* faery fire */
652{ 0, 0, 0, 0, 0}, /* cure blindness */
653{ 0, 4, 0, 5, 30}, /* dark vision */
654{ 0, 0, 0, 4, 12}, /* bullet swarm */
655{ 0, 0, 0, 4, 12}, /* bullet storm */
656{ 0, 0, 0, 4, 12}, /* cause many wounds */
657{ 8, 6, 3, 0, 24}, /*small snowstorm*/
658{ 8, 10, 3, 0, 24}, /*medium snowstorm*/
659{ 8, 14, 4, 0, 32}, /*large snowstorm*/ /* 170 */
660{ 0, 0, 0, 0, 0}, /*cure disease*/
661{ 0, 0, 1, 1, 24}, /*cause red death*/
662{ 0, 0, 3, 5, 10}, /*cause flu*/
663{ 0, 0, 3, 10, 20}, /*cause black death*/
664{ 0, 0, 1, 1, 10}, /*cause leprosy*/
665{ 0, 0, 1, 4, 10}, /*cause smallpox*/
666{ 0, 0, 1, 5, 24}, /*cause plague*/
667{ 0, 0, 1, 10, 10}, /*cause anthrax*/
668{ 0, 0, 1, 10, 24}, /*cause typhoid*/
669{ 4, 5, 4, 4, 9}, /* mana blast */ /* 180 */
670{ 8, 6, 3, 0, 24}, /* small manaball */
671{ 8, 10, 3, 0, 24}, /* medium manaball */
672{ 8, 14, 4, 0, 32}, /* large manaball */
673{ 10, 9, 3, 0, 30}, /* mana bolt */
674{ 2, 20, 2, 1, 10}, /* dancing sword */ /* 185 */
675{ 2, 20, 2, 1, 20}, /* animate weapon */
676{ 0, 0, 3, 5, 10}, /*cause cold*/
677{ 1, 1, 12, 5, 10}, /*divine shock*/
678{ 0, 20, 25, 4, 8}, /*windstorm*/
679{ 0, 100, 0, 1, 20}, /*sanctuary*/ /* 190 */
680{ 0, 4, 0, 9, 36}, /*peace*/
681{ 0, 10, 0, 5, 50}, /*spiderweb*/
682{ 0, 5, 0, 10, 10}, /*conflict*/
683{ 0, 0, 5, 4, 4}, /*rage*/
684{ 10, 16, 3, 0, 24}, /*forked lightning*/ /* 195*/
685{ 10, 5, 5, 4, 10}, /*poison fog*/
686{ 6, 100, 25, 4, 20}, /*flame aura*/
687{ 100, 20, 25, 4, 6}, /*vitriol*/
688{ 40, 5, 4, 40, 10}, /*vitriol splash*/
689{ 0, 0, 5, 4, 6}, /*ironwood skin*/
690{ 20, 5, 3, 5, 7}, /*wrathful eye*/
691{ 0, 5, 3, 5, 0}, /*town portal*/
692{ 0, 0, 0, 4, 12}, /*missile swarm*/
693{ 0, 0, 1, 1, 12}, /*cause rabies*/
694{ 75, 0, 1, 0, 18}, /*asteroid*/
695{ 0, 0, 0, 4, 12}, /*frost nova*/
696};
697
698#endif /* 0 */
699
700const char* const spellpathnames[NRSPELLPATHS] = {
701 "Protection", 27 "Protection",
702 "Fire", 28 "Fire",
703 "Frost", 29 "Frost",
704 "Electricity", 30 "Electricity",
705 "Missiles", 31 "Missiles",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines