|
Atrinik Server 2.5
|
00001 /************************************************************************ 00002 * Atrinik, a Multiplayer Online Role Playing Game * 00003 * * 00004 * Copyright (C) 2009-2011 Alex Tokar and Atrinik Development Team * 00005 * * 00006 * Fork from Daimonin (Massive Multiplayer Online Role Playing Game) * 00007 * and Crossfire (Multiplayer game for X-windows). * 00008 * * 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; either version 2 of the License, or * 00012 * (at your option) any later version. * 00013 * * 00014 * This program is distributed in the hope that it will be useful, * 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00017 * GNU General Public License for more details. * 00018 * * 00019 * You should have received a copy of the GNU General Public License * 00020 * along with this program; if not, write to the Free Software * 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00022 * * 00023 * The author can be reached at admin@atrinik.org * 00024 ************************************************************************/ 00025 00030 #include "sounds.h" 00031 #include "spells.h" 00032 00034 spell_struct spells[NROFREALSPELLS] = 00035 { 00036 {"firestorm", SPELL_TYPE_WIZARD, 00037 "icon_firestorm.101", "A cone of fire you project in front of you. The spell gains strength as you grow in level, so it remains one of your best spells even at high level.", 00038 1, 5, 8, 3, 6, 0, 1.0, 00039 4, 5, 4, 4, 9, "magic_fire.ogg", 00040 SPELL_USE_CAST | SPELL_USE_HORN | SPELL_USE_WAND | SPELL_USE_ROD | SPELL_USE_DUST | SPELL_USE_BOOK | SPELL_USE_POTION, SPELL_DESC_DIRECTION, 00041 PATH_FIRE, "firebreath" 00042 }, 00043 00044 {"icestorm", SPELL_TYPE_WIZARD, 00045 "icon_icestorm.101", "A cone of ice which freezes monsters facing the caster. This spell gains power with level, so it remains useful even at high level.", 00046 1, 5, 8, 3, 6, 0, 1.0, 00047 4, 5, 4, 4, 9, "magic_ice.ogg", 00048 SPELL_USE_CAST | SPELL_USE_HORN | SPELL_USE_WAND | SPELL_USE_ROD | SPELL_USE_BOOK | SPELL_USE_POTION | SPELL_USE_DUST, SPELL_DESC_DIRECTION, 00049 PATH_FROST, "icestorm" 00050 }, 00051 00052 {"minor healing", SPELL_TYPE_PRIEST, 00053 "icon_minor_healing.101", "This prayer heals minor wounds on either the caster or the target.", 00054 1, 4, 8, 3, 6, 3, 1.0, 00055 0, 0, 0, 0, 0, "magic_stat.ogg", 00056 SPELL_USE_CAST | SPELL_USE_BALM | SPELL_USE_SCROLL | SPELL_USE_ROD | SPELL_USE_POTION | SPELL_USE_BOOK, SPELL_DESC_SELF | SPELL_DESC_FRIENDLY | SPELL_DESC_TOWN, 00057 PATH_RESTORE, "meffect_green" 00058 }, 00059 00060 {"cure poison", SPELL_TYPE_PRIEST, 00061 "icon_cure_poison.101", "This prayer cures all poison from your character.", 00062 1, 5, 8, 3, 6, 4, 1.0, 00063 0, 0, 0, 0, 0, "magic_stat.ogg", 00064 SPELL_USE_CAST | SPELL_USE_POTION | SPELL_USE_BOOK, SPELL_DESC_SELF | SPELL_DESC_FRIENDLY | SPELL_DESC_TOWN, 00065 PATH_RESTORE, "meffect_purple" 00066 }, 00067 00068 {"cure disease", SPELL_TYPE_PRIEST, 00069 "icon_cure_disease.101", "This prayer cures all diseases from your character.", 00070 1, 5, 8, 3, 6, 4, 1.0, 00071 0, 0, 0, 0, 0, "magic_stat.ogg", 00072 SPELL_USE_CAST | SPELL_USE_BALM | SPELL_USE_BOOK, SPELL_DESC_SELF | SPELL_DESC_FRIENDLY | SPELL_DESC_TOWN, 00073 PATH_RESTORE, "meffect_purple" 00074 }, 00075 00076 {"strength self", SPELL_TYPE_WIZARD, 00077 "icon_strength_self.101", "This spell will increase your strength by some amount. Recasting while in effect will refresh the wear out counter.", 00078 1, 5, 8, 3, 6, 0, 1.0, 00079 0, 0, 0, 4, 0, "magic_stat.ogg", 00080 SPELL_USE_CAST | SPELL_USE_HORN | SPELL_USE_WAND | SPELL_USE_POTION | SPELL_USE_ROD | SPELL_USE_SCROLL | SPELL_USE_BOOK, SPELL_DESC_SELF | SPELL_DESC_TOWN, 00081 PATH_SELF, "meffect_yellow" 00082 }, 00083 00084 {"identify", SPELL_TYPE_WIZARD, 00085 "icon_identify.101", "This spell identifies some items in your inventory. Number of items identified is your literacy level and your Intelligence stat combined.", 00086 1, 5, 8, 3, 6, 2, 1.0, 00087 0, 0, 0, 0, 0, "magic_default.ogg", 00088 SPELL_USE_CAST | SPELL_USE_HORN | SPELL_USE_WAND | SPELL_USE_ROD | SPELL_USE_SCROLL | SPELL_USE_BOOK, SPELL_DESC_SELF | SPELL_DESC_TOWN, 00089 PATH_INFO, "meffect_pink" 00090 }, 00091 00092 {"asteroid", SPELL_TYPE_WIZARD, 00093 "icon_default.101", "Fires an asteroid in front of you, which explodes into a cone of ice if it hits an object.", 00094 30, 20, 32, 2, 0, 3, 1.0, 00095 4, 10, 4, 16, 20, "magic_rstrike.ogg", 00096 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00097 PATH_FROST, "asteroid" 00098 }, 00099 00100 {"frost nova", SPELL_TYPE_WIZARD, 00101 "icon_default.101", "Similar to the spell of asteroid, but this spell fires a bunch of asteroids in front of you, which then explode into cones of ice if they hit something.", 00102 80, 70, 42, 2, 0, 3, 1.0, 00103 4, 10, 4, 8, 35, "magic_rstrike.ogg", 00104 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00105 PATH_FROST, "asteroid" 00106 }, 00107 00108 {"remove curse", SPELL_TYPE_PRIEST, 00109 "icon_remove_curse.101", "This prayer removes any curse from applied items. Unapplied items are not affected.", 00110 1, 5, 8, 3, 6, 2, 1.0, 00111 0, 0, 0, 0, 0, "magic_default.ogg", 00112 SPELL_USE_CAST | SPELL_USE_SCROLL | SPELL_USE_BOOK, SPELL_DESC_SELF | SPELL_DESC_TOWN | SPELL_DESC_FRIENDLY, 00113 PATH_TURNING, "meffect_blue" 00114 }, 00115 00116 {"remove damnation", SPELL_TYPE_PRIEST, 00117 "icon_remove_damnation.101", "This prayer removes any curse or damnation from applied items. Unapplied items are not affected.", 00118 1, 5, 8, 3, 6, 2, 1.0, 00119 0, 0, 0, 0, 0, "magic_default.ogg", 00120 SPELL_USE_CAST | SPELL_USE_SCROLL | SPELL_USE_BOOK, SPELL_DESC_SELF | SPELL_DESC_TOWN | SPELL_DESC_FRIENDLY, 00121 PATH_TURNING, "meffect_blue" 00122 }, 00123 00124 {"cause light wounds", SPELL_TYPE_PRIEST, 00125 "icon_cause_light_wounds.101", "This prayer creates a missile which inflicts damage to your enemies.", 00126 1, 4, 8, 3, 6, 0, 1.0, 00127 4, 5, 4, 4, 9, "magic_wound.ogg", 00128 SPELL_USE_CAST | SPELL_USE_SCROLL | SPELL_USE_BOOK, SPELL_DESC_DIRECTION, 00129 PATH_WOUNDING, "cause_wounds" 00130 }, 00131 00132 {"confuse", SPELL_TYPE_WIZARD, 00133 NULL, NULL, 00134 1, 5, 8, 3, 6, 0, 1.0, 00135 4, 5, 4, 4, 9, "magic_confusion.ogg", 00136 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00137 PATH_MIND, NULL 00138 }, 00139 00140 {"magic bullet", SPELL_TYPE_WIZARD, 00141 "icon_magic_bullet.101", "This spell fires a magical bullet which does not track but instead flies in one direction until it hits something.", 00142 1, 4, 8, 3, 6, 0, 1.0, 00143 4, 5, 4, 4, 9, "magic_bullet1.ogg", 00144 SPELL_USE_CAST | SPELL_USE_SCROLL | SPELL_USE_HORN | SPELL_USE_WAND | SPELL_USE_ROD | SPELL_USE_BOOK, SPELL_DESC_DIRECTION, 00145 PATH_MISSILE, "bullet" 00146 }, 00147 00148 {"summon golem", SPELL_TYPE_WIZARD, 00149 NULL, NULL, 00150 1, 5, 8, 3, 6, 0, 1.0, 00151 4, 5, 4, 4, 9, "magic_summon1.ogg", 00152 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00153 PATH_SUMMON, NULL 00154 }, 00155 00156 {"remove depletion", SPELL_TYPE_PRIEST, 00157 "icon_remove_depletion.101", "This prayer restores depleted stats of your character.", 00158 1, 5, 8, 3, 6,0, 1.0, 00159 0, 0, 0, 0, 0, "magic_stat.ogg", 00160 SPELL_USE_CAST, SPELL_DESC_SELF | SPELL_DESC_TOWN, 00161 PATH_RESTORE, "meffect_purple" 00162 }, 00163 00164 {"probe", SPELL_TYPE_WIZARD, 00165 "icon_probe.101", "Probe will invoke a magic ball which will give you information about the monster it hits. Probe tells you about the monster's level, the damage it does, and so on. A probe will be invisible to the monster and will invoke no aggression.", 00166 1, 2, 8, 3, 6, 0, 1.0, 00167 0, 0, 0, 0, 0, "magic_default.ogg", 00168 SPELL_USE_CAST | SPELL_USE_SCROLL | SPELL_USE_HORN | SPELL_USE_WAND | SPELL_USE_ROD | SPELL_USE_BOOK, SPELL_DESC_TOWN | SPELL_DESC_DIRECTION, 00169 PATH_INFO, "probebullet" 00170 }, 00171 00172 {"town portal", SPELL_TYPE_PRIEST, 00173 "icon_town_portal.101", "This spell allows you to set up magic portals from one place to another.", 00174 15, 30, 8, 1, 0, 3, 1.0, 00175 0, 0, 0, 0, 0, "magic_stat.ogg", 00176 SPELL_USE_CAST | SPELL_USE_SCROLL | SPELL_USE_BOOK, SPELL_DESC_SELF, 00177 PATH_TELE, "perm_magic_portal" 00178 }, 00179 00180 {"create food", SPELL_TYPE_WIZARD, 00181 "icon_default.101", "Creates food in your inventory which you may eat, but will vanish if dropped.", 00182 1, 30, 8, 1, 0, 3, 1.0, 00183 3, 0, 0, 0, 0, "magic_stat.ogg", 00184 SPELL_USE_CAST, SPELL_DESC_DIRECTION | SPELL_DESC_TOWN, 00185 PATH_CREATE, NULL 00186 }, 00187 00188 {"word of recall", SPELL_TYPE_PRIEST, 00189 "icon_default.101", "Teleports you to your house, apartment, or wherever you applied a bed to reality. This spell takes a while to complete, but is faster the higher level you are.", 00190 12, 5, 24, 1, 19, 3, 1.0, 00191 25, 3, 3, 4, 0, "magic_teleport.ogg", 00192 SPELL_USE_CAST | SPELL_USE_WAND | SPELL_USE_ROD | SPELL_USE_HORN, SPELL_DESC_DIRECTION | SPELL_DESC_TOWN, 00193 PATH_TELE, NULL 00194 }, 00195 00196 {"recharge", SPELL_TYPE_WIZARD, 00197 "icon_default.101", "Recharges marked wand in your inventory. There is a slight chance that the wand will be destroyed when using this spell.", 00198 16, 50, 100, 2, 10, 0, 1.0, 00199 0, 0, 0, 0, 0, "magic_invisible.ogg", 00200 SPELL_USE_CAST, SPELL_DESC_DIRECTION | SPELL_DESC_TOWN, 00201 PATH_TRANSMUTE, NULL 00202 }, 00203 00204 {"greater healing", SPELL_TYPE_PRIEST, 00205 "icon_greater_healing.101", "An improved version of minor healing, this prayer heals wounds on either the caster or the target.", 00206 10, 6, 8, 3, 0, 3, 1.0, 00207 0, 0, 0, 0, 0, "magic_stat.ogg", 00208 SPELL_USE_CAST | SPELL_USE_BALM | SPELL_USE_SCROLL | SPELL_USE_ROD | SPELL_USE_POTION, SPELL_DESC_SELF | SPELL_DESC_FRIENDLY | SPELL_DESC_TOWN, 00209 PATH_RESTORE, "meffect_green" 00210 }, 00211 00212 {"restoration", SPELL_TYPE_PRIEST, 00213 "icon_default.101", "Heals the target or the caster, restores food and removes any disease, confusion and poison.", 00214 20, 10, 12, 3, 0, 3, 1.0, 00215 0, 0, 0, 0, 0, "magic_stat.ogg", 00216 SPELL_USE_CAST, SPELL_DESC_SELF | SPELL_DESC_FRIENDLY | SPELL_DESC_TOWN, 00217 PATH_RESTORE, "meffect_green" 00218 }, 00219 00220 {"protection from cold", SPELL_TYPE_PRIEST, 00221 "icon_default.101", "Raises your protection to cold. The protection raised by this spell depends on the caster's level.", 00222 24, 22, 100, 2, 0, 3, 1.0, 00223 1, 350, 3, 4, 0, "magic_stat.ogg", 00224 SPELL_USE_CAST | SPELL_USE_BALM, SPELL_DESC_SELF | SPELL_DESC_FRIENDLY | SPELL_DESC_TOWN, 00225 PATH_PROT, NULL 00226 }, 00227 00228 {"protection from fire", SPELL_TYPE_PRIEST, 00229 "icon_default.101", "Raises your protection to fire. The protection raised by this spell depends on the caster's level.", 00230 24, 22, 100, 2, 0, 3, 1.0, 00231 1, 350, 3, 4, 0, "magic_stat.ogg", 00232 SPELL_USE_CAST | SPELL_USE_BALM, SPELL_DESC_SELF | SPELL_DESC_FRIENDLY | SPELL_DESC_TOWN, 00233 PATH_PROT, NULL 00234 }, 00235 00236 {"protection from electricity", SPELL_TYPE_PRIEST, 00237 "icon_default.101", "Raises your protection to electricity. The protection raised by this spell depends on the caster's level.", 00238 24, 22, 100, 2, 0, 3, 1.0, 00239 1, 350, 3, 4, 0, "magic_stat.ogg", 00240 SPELL_USE_CAST | SPELL_USE_BALM, SPELL_DESC_SELF | SPELL_DESC_FRIENDLY | SPELL_DESC_TOWN, 00241 PATH_PROT, NULL 00242 }, 00243 00244 {"protection from poison", SPELL_TYPE_PRIEST, 00245 "icon_default.101", "Raises your protection to poison. The protection raised by this spell depends on the caster's level.", 00246 24, 22, 100, 2, 0, 3, 1.0, 00247 1, 350, 3, 4, 0, "magic_stat.ogg", 00248 SPELL_USE_CAST | SPELL_USE_BALM, SPELL_DESC_SELF | SPELL_DESC_FRIENDLY | SPELL_DESC_TOWN, 00249 PATH_PROT, NULL 00250 }, 00251 00252 {"consecrate", SPELL_TYPE_PRIEST, 00253 "icon_consecrate.101", "Consecrates the altar you are standing on to your god. The prayer may fail if the altar's level is higher than yours.", 00254 15, 10, 70, 2, 0, 3, 1.0, 00255 0, 0, 0, 0, 0, "magic_stat.ogg", 00256 SPELL_USE_CAST, SPELL_DESC_DIRECTION | SPELL_DESC_TOWN, 00257 PATH_TRANSMUTE, NULL 00258 }, 00259 00260 {"finger of death", SPELL_TYPE_PRIEST, 00261 "icon_finger_of_death.101", "You point your finger at targeted creature, and it gets struck by the power of your god.", 00262 18, 7, 12, 2, 0, 5, 1.0, 00263 8, 0, 2, 0, 15, "magic_hword.ogg", 00264 SPELL_USE_CAST, SPELL_DESC_ENEMY, 00265 PATH_DEATH, "spellobject_finger_of_death" 00266 }, 00267 00268 {"cause cold", SPELL_TYPE_PRIEST, 00269 NULL, NULL, 00270 5, 10, 50, 2, 0, 3, 1.0, 00271 8, 0, 4, 2, 7, "magic_stat.ogg", 00272 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00273 PATH_DEATH, "disease_cold" 00274 }, 00275 00276 {"cause flu", SPELL_TYPE_PRIEST, 00277 NULL, NULL, 00278 10, 12, 50, 2, 0, 3, 1.0, 00279 10, 0, 4, 2, 7, "magic_stat.ogg", 00280 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00281 PATH_DEATH, "flu" 00282 }, 00283 00284 {"cause leprosy", SPELL_TYPE_PRIEST, 00285 NULL, NULL, 00286 15, 14, 58, 2, 0, 3, 1.0, 00287 6, 0, 4, 2, 7, "magic_stat.ogg", 00288 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00289 PATH_DEATH, "leprosy" 00290 }, 00291 00292 {"cause smallpox", SPELL_TYPE_PRIEST, 00293 NULL, NULL, 00294 20, 16, 58, 2, 0, 3, 1.0, 00295 8, 0, 4, 2, 7, "magic_stat.ogg", 00296 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00297 PATH_DEATH, "smallpox" 00298 }, 00299 00300 {"cause pneumonic plague", SPELL_TYPE_PRIEST, 00301 NULL, NULL, 00302 25, 18, 58, 2, 0, 3, 1.0, 00303 8, 0, 4, 2, 7, "magic_stat.ogg", 00304 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00305 PATH_DEATH, "pneumonic_plague" 00306 }, 00307 00308 {"meteor", SPELL_TYPE_WIZARD, 00309 "icon_meteor.101", "Fires a meteor in front of you, which explodes into a cone of fire if it hits an object.", 00310 30, 20, 32, 2, 0, 3, 1.0, 00311 4, 10, 4, 16, 20, "magic_rstrike.ogg", 00312 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00313 PATH_FIRE, "meteor" 00314 }, 00315 00316 {"meteor swarm", SPELL_TYPE_WIZARD, 00317 "icon_meteor_swarm.101", "Similar to the spell of meteor, but this spell fires a bunch of meteors in front of you, which then explode into cones of fire if they hit something.", 00318 80, 70, 42, 2, 0, 3, 1.0, 00319 4, 10, 4, 8, 35, "magic_rstrike.ogg", 00320 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00321 PATH_FIRE, "meteor" 00322 }, 00323 00324 {"poison fog", SPELL_TYPE_WIZARD, 00325 NULL, NULL, 00326 5, 18, 86, 2, 0, 3, 1.0, 00327 0, 0, 0, 0, 0, "magic_stat.ogg", 00328 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00329 PATH_WOUNDING, NULL 00330 }, 00331 00332 {"bullet swarm", SPELL_TYPE_WIZARD, 00333 "icon_default.101", "Fires 5 magic bullets in front of you at once.", 00334 25, 18, 86, 2, 0, 3, 1.0, 00335 0, 0, 0, 0, 0, "magic_bullet1.ogg", 00336 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00337 PATH_MISSILE, "bullet" 00338 }, 00339 00340 {"bullet storm",SPELL_TYPE_WIZARD, 00341 "icon_default.101", "Fires 3 magic bullets in front of you at once.", 00342 20, 18, 86, 2, 0, 3, 1.0, 00343 0, 0, 0, 0, 0, "magic_bullet1.ogg", 00344 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00345 PATH_MISSILE, "bullet" 00346 }, 00347 00348 {"destruction", SPELL_TYPE_WIZARD, 00349 "icon_destruction.101", "Creatures around you get struck by a magical power.", 00350 18, 20, 20, 0, 3, 3, 1.0, 00351 4, 1, 3, 20, 24, "magic_destruction.ogg", 00352 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00353 PATH_WOUNDING, "spellobject_destruction" 00354 }, 00355 00356 {"create bomb", SPELL_TYPE_WIZARD, 00357 "icon_create_bomb.101", "Creates a bomb in front of you, which then explodes after a short while.", 00358 10, 10, 30, 2, 0, 3, 1.0, 00359 10, 9, 0, 30, 9, "magic_bomb.ogg", 00360 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00361 PATH_DETONATE, "bomb" 00362 }, 00363 00364 {"cure confusion", SPELL_TYPE_PRIEST, 00365 "icon_default.101", "Cures any confusion your target or yourself may have.", 00366 1, 5, 8, 3, 6,4, 1.0, 00367 0, 0, 0, 0, 0, "magic_stat.ogg", 00368 SPELL_USE_CAST | SPELL_USE_POTION | SPELL_USE_BOOK, SPELL_DESC_SELF | SPELL_DESC_FRIENDLY | SPELL_DESC_TOWN, 00369 PATH_RESTORE, "meffect_purple" 00370 }, 00371 00372 {"transform wealth", SPELL_TYPE_WIZARD, 00373 "icon_transform_wealth.101", "Mark wealth object (money, coppers for example) and cast this spell. The coppers will be transformed into silvers at regular money rate (you must have enough copper coins). There is 20% of the money sacrifice to cast it, so 100 coppers will become 80 coppers.", 00374 15, 18, 40, 2, 7, 0, 1.0, 00375 0, 0, 0, 0, 0, "magic_turn.ogg", 00376 SPELL_USE_CAST | SPELL_USE_WAND, SPELL_DESC_DIRECTION | SPELL_DESC_TOWN, 00377 PATH_TRANSMUTE, NULL 00378 }, 00379 00380 {"magic missile", SPELL_TYPE_WIZARD, 00381 "icon_magic_missile.101", "Fires a missile at currently selected target, following the target wherever they go.", 00382 1, 3, 8, 3, 6, 9, 1.0, 00383 4, 5, 4, 4, 9, "magic_missile.ogg", 00384 SPELL_USE_CAST | SPELL_USE_HORN | SPELL_USE_WAND | SPELL_USE_ROD, SPELL_DESC_ENEMY, 00385 PATH_MISSILE, "magic_missile" 00386 }, 00387 00388 {"rain of healing", SPELL_TYPE_PRIEST, 00389 "icon_rain_of_healing.101", "This prayer heals all friends around and below the caster, excluding the caster.", 00390 20, 6, 18, 0, 0, 0, 1.0, 00391 0, 0, 0, 0, 0, "magic_stat.ogg", 00392 SPELL_USE_CAST, SPELL_DESC_DIRECTION | SPELL_DESC_TOWN, 00393 PATH_RESTORE, "meffect_green" 00394 }, 00395 00396 {"party heal", SPELL_TYPE_PRIEST, 00397 "icon_party_heal.101", "Heals all nearby party members, including the caster.", 00398 20, 6, 16, 0, 0, 0, 1.0, 00399 0, 0, 0, 0, 0, "magic_stat.ogg", 00400 SPELL_USE_CAST, SPELL_DESC_DIRECTION | SPELL_DESC_TOWN, 00401 PATH_RESTORE, "meffect_green" 00402 }, 00403 00404 {"frostbolt", SPELL_TYPE_WIZARD, 00405 "icon_default.101", "A blast of cold is fired in straight line. Each part of it can hit enemies only once.", 00406 1, 5, 8, 3, 6, 0, 1.0, 00407 4, 7, 4, 0, 9, "magic_ice.ogg", 00408 SPELL_USE_CAST | SPELL_USE_HORN | SPELL_USE_WAND | SPELL_USE_ROD, SPELL_DESC_DIRECTION, 00409 PATH_FROST, "frostbolt" 00410 }, 00411 00412 {"firebolt", SPELL_TYPE_WIZARD, 00413 "icon_firebolt.101", "A blast of fire is fired in straight line. Each part of it can hit enemies only once.", 00414 1, 5, 8, 3, 6, 0, 1.0, 00415 4, 7, 4, 0, 9, "magic_fire.ogg", 00416 SPELL_USE_CAST | SPELL_USE_HORN | SPELL_USE_WAND | SPELL_USE_ROD, SPELL_DESC_DIRECTION, 00417 PATH_FIRE, "firebolt" 00418 }, 00419 00420 {"lightning", SPELL_TYPE_WIZARD, 00421 "icon_default.101", "Lightning is fired in straight line. Each part of it can hit enemies only once and it will bounce off of walls.", 00422 1, 5, 8, 3, 6, 0, 1.0, 00423 4, 7, 4, 0, 9, "magic_elec.ogg", 00424 SPELL_USE_CAST | SPELL_USE_HORN | SPELL_USE_WAND | SPELL_USE_ROD, SPELL_DESC_DIRECTION, 00425 PATH_ELEC, "lightning" 00426 }, 00427 00428 {"forked lightning", SPELL_TYPE_WIZARD, 00429 "icon_default.101", "Lightning is fired in straight line. Each part of it can hit enemies only once and it will bounce off of walls. The main line of lightning may create forks of lightning, which will do less damage.", 00430 1, 5, 8, 3, 6, 0, 1.0, 00431 4, 4, 4, 8, 9, "magic_elec.ogg", 00432 SPELL_USE_CAST | SPELL_USE_HORN | SPELL_USE_WAND | SPELL_USE_ROD, SPELL_DESC_DIRECTION, 00433 PATH_ELEC, "forked_lightning" 00434 }, 00435 00436 {"negative energy bolt", SPELL_TYPE_WIZARD, 00437 "icon_default.101", "A blast of negative energy is fired in straight line. Each part of it can hit enemies only once and it will bounce off of walls.", 00438 1, 5, 8, 3, 6, 0, 1.0, 00439 4, 5, 4, 8, 9, "magic_elec.ogg", 00440 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00441 PATH_DEATH, "negabolt" 00442 }, 00443 00444 {"holy word", SPELL_TYPE_PRIEST, 00445 "icon_holy_word.101", "Cone of holy power that will damage all undead creatures it hits.", 00446 1, 6, 12, 0, 0, 0, 1.0, 00447 4, 6, 4, 4, 9, "magic_hword.ogg", 00448 SPELL_USE_CAST, SPELL_DESC_DIRECTION, 00449 PATH_TURNING, "holyword" 00450 } 00451 }; 00452 00454 char *spellpathnames[NRSPELLPATHS] = 00455 { 00456 "Protection", 00457 "Fire", 00458 "Frost", 00459 "Electricity", 00460 "Missiles", 00461 "Self", 00462 "Summoning", 00463 "Abjuration", 00464 "Restoration", 00465 "Detonation", 00466 "Mind", 00467 "Creation", 00468 "Teleportation", 00469 "Information", 00470 "Transmutation", 00471 "Transference", 00472 "Turning", 00473 "Wounding", 00474 "Death", 00475 "Light" 00476 };
1.7.4