summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-26 23:35:12 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-26 23:35:12 +0000
commit2b5374e59b4e7ebfd61452510091ea761a6da5c9 (patch)
tree48745005ceb05cb0ceead676eff5a51e04ecc521 /crawl-ref/source/spl-cast.cc
parentd58c4046b6ce324b2996a7e64c9147cafb1c8240 (diff)
downloadcrawl-ref-2b5374e59b4e7ebfd61452510091ea761a6da5c9.tar.gz
crawl-ref-2b5374e59b4e7ebfd61452510091ea761a6da5c9.zip
Cut 30 obsoleted spells. (Included in docs/obsolete/cut_spells.txt.)
Breaks saves. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9241 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc122
1 files changed, 6 insertions, 116 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index dc3026862c..f7b3db1861 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -841,11 +841,10 @@ static bool _vampire_cannot_cast(spell_type spell)
// Satiated or less
switch (spell)
{
- case SPELL_AIR_WALK:
case SPELL_ALTER_SELF:
case SPELL_BERSERKER_RAGE:
case SPELL_BLADE_HANDS:
- case SPELL_CURE_POISON_II:
+ case SPELL_CURE_POISON:
case SPELL_DRAGON_FORM:
case SPELL_ICE_FORM:
case SPELL_RESIST_POISON:
@@ -954,10 +953,7 @@ beam_type _spell_to_beam_type(spell_type spell)
{
switch (spell)
{
- case SPELL_BURN: return BEAM_FIRE;
case SPELL_FREEZE: return BEAM_COLD;
- case SPELL_CRUSH: return BEAM_MISSILE;
- case SPELL_ARC: return BEAM_ELECTRICITY;
default: break;
}
return BEAM_NONE;
@@ -1076,8 +1072,8 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
if (testbits(flags, SPFLAG_NOT_SELF) && spd.isMe)
{
- if (spell == SPELL_TELEPORT_OTHER || spell == SPELL_HEAL_OTHER
- || spell == SPELL_POLYMORPH_OTHER || spell == SPELL_BANISHMENT)
+ if (spell == SPELL_TELEPORT_OTHER || spell == SPELL_POLYMORPH_OTHER
+ || spell == SPELL_BANISHMENT)
{
mpr( "Sorry, this spell works on others only." );
}
@@ -1181,10 +1177,7 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
switch (spell)
{
// spells using burn_freeze()
- case SPELL_BURN:
case SPELL_FREEZE:
- case SPELL_CRUSH:
- case SPELL_ARC:
if (!burn_freeze(powc, _spell_to_beam_type(spell),
monster_at(you.pos() + spd.delta)))
{
@@ -1320,11 +1313,6 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
return (SPRET_ABORT);
break;
- case SPELL_THUNDERBOLT:
- if (!zapping(ZAP_LIGHTNING, powc, beam, true))
- return (SPRET_ABORT);
- break;
-
case SPELL_AGONY:
if (!zapping(ZAP_AGONY, powc, beam, true))
return (SPRET_ABORT);
@@ -1345,33 +1333,11 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
return (SPRET_ABORT);
break;
- case SPELL_ORB_OF_FRAGMENTATION:
- if (!zapping(ZAP_ORB_OF_FRAGMENTATION, powc, beam, true))
- return (SPRET_ABORT);
- break;
-
case SPELL_CIGOTUVIS_DEGENERATION:
if (!zapping(ZAP_DEGENERATION, powc, beam, true))
return (SPRET_ABORT);
break;
- case SPELL_ORB_OF_ELECTROCUTION:
- if (!zapping(ZAP_ORB_OF_ELECTRICITY, powc, beam, true))
- return (SPRET_ABORT);
- break;
-
- case SPELL_FLAME_OF_CLEANSING:
- cleansing_flame(powc, CLEANSING_FLAME_SPELL, you.pos(), &you);
- break;
-
- case SPELL_HOLY_WORD:
- holy_word(100, HOLY_WORD_SPELL, you.pos(), true, &you);
- break;
-
- case SPELL_REPEL_UNDEAD:
- turn_undead(100);
- break;
-
case SPELL_HELLFIRE:
// Should only be available from
// staff of Dispater & Sceptre of Asmodeus
@@ -1457,10 +1423,6 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
return (SPRET_ABORT);
break;
- case SPELL_TWIST:
- cast_twist(powc, beam.target);
- break;
-
case SPELL_AIRSTRIKE:
airstrike(powc, spd);
break;
@@ -1470,10 +1432,6 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
return (SPRET_ABORT);
break;
- case SPELL_FAR_STRIKE:
- cast_far_strike(powc);
- break;
-
case SPELL_PORTAL_PROJECTILE:
if (!cast_portal_projectile(powc))
return SPRET_ABORT;
@@ -1496,10 +1454,6 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
cast_shatter(powc);
break;
- case SPELL_BEND:
- cast_bend(powc);
- break;
-
case SPELL_SYMBOL_OF_TORMENT:
torment(TORMENT_SPELL, you.pos());
break;
@@ -1512,10 +1466,6 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
cast_ignite_poison(powc);
break;
- case SPELL_ROTTING:
- cast_rotting(powc);
- break;
-
// Summoning spells, and other spells that create new monsters.
// If a god is making you cast one of these spells, any monsters
// produced will count as god gifts.
@@ -1560,16 +1510,8 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
cast_summon_dragon(powc, god);
break;
- case SPELL_SUMMON_ANGEL:
- summon_holy_being_type(MONS_ANGEL, powc, god, (int)spell);
- break;
-
- case SPELL_SUMMON_DAEVA:
- summon_holy_being_type(MONS_DAEVA, powc, god, (int)spell);
- break;
-
case SPELL_TUKIMAS_DANCE:
- // Temporarily turn a wielded weapon into a dancing weapon.
+ // Temporarily turns a wielded weapon into a dancing weapon.
if (normal_cast)
crawl_state.cant_cmd_repeat("You can't repeat Tukima's Dance.");
cast_tukimas_dance(powc, god);
@@ -1720,8 +1662,7 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
mass_enchantment(ENCH_CHARM, powc, MHITYOU);
break;
- case SPELL_ABJURATION_I:
- case SPELL_ABJURATION_II:
+ case SPELL_ABJURATION:
abjuration(powc);
break;
@@ -1760,10 +1701,6 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
return (SPRET_ABORT);
break;
- case SPELL_HEAL_OTHER:
- zapping(ZAP_HEALING, powc, beam);
- break;
-
// Self-enchantments. (Spells that can only affect the player.)
// Resistances.
case SPELL_INSULATION:
@@ -1783,28 +1720,10 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
break;
// Healing.
- case SPELL_CURE_POISON_I: // Ely version
- case SPELL_CURE_POISON_II: // Poison magic version
- // both use same function
+ case SPELL_CURE_POISON:
cast_cure_poison(powc);
break;
- case SPELL_PURIFICATION:
- purification();
- break;
-
- case SPELL_RESTORE_STRENGTH:
- restore_stat(STAT_STRENGTH, 0, false);
- break;
-
- case SPELL_RESTORE_INTELLIGENCE:
- restore_stat(STAT_INTELLIGENCE, 0, false);
- break;
-
- case SPELL_RESTORE_DEXTERITY:
- restore_stat(STAT_DEXTERITY, 0, false);
- break;
-
// Weapon brands.
case SPELL_SURE_BLADE:
cast_sure_blade(powc);
@@ -1885,11 +1804,6 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
canned_msg(MSG_SPELL_FIZZLES);
break;
- case SPELL_AIR_WALK:
- if (!transform(powc, TRAN_AIR))
- canned_msg(MSG_SPELL_FIZZLES);
- break;
-
case SPELL_ALTER_SELF:
// Trying is already enough, even if it fails.
did_god_conduct(DID_DELIBERATE_MUTATING, 10);
@@ -2006,12 +1920,6 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
you_teleport();
break;
- case SPELL_SEMI_CONTROLLED_BLINK:
- //jmf: powc is ignored
- if (cast_semi_controlled_blink(powc) == -1)
- return (SPRET_ABORT);
- break;
-
case SPELL_CONTROLLED_BLINK:
if (blink(powc, true) == -1)
return (SPRET_ABORT);
@@ -2083,10 +1991,6 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
}
break;
- case SPELL_CREATE_NOISE: // Unused, the player can shout to do this. - bwr
- noisy(25, you.pos(), "You hear a voice calling your name!");
- break;
-
case SPELL_PROJECTED_NOISE:
project_noise();
break;
@@ -2105,21 +2009,11 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
cast_passwall(powc);
break;
- case SPELL_TOMB_OF_DOROKLOHE:
- entomb(powc);
- break;
-
case SPELL_APPORTATION:
if (!cast_apportation(powc, beam.target))
return (SPRET_ABORT);
break;
- case SPELL_SWAP:
- if (normal_cast)
- crawl_state.cant_cmd_repeat("You can't swap.");
- cast_swap(powc);
- break;
-
case SPELL_RECALL:
recall(0);
break;
@@ -2139,10 +2033,6 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
cast_fulsome_distillation(powc);
break;
- case SPELL_DETECT_MAGIC:
- mpr("FIXME: implement!");
- break;
-
case SPELL_DEBUGGING_RAY:
if (!zapping(ZAP_DEBUGGING_RAY, powc, beam, true))
return (SPRET_ABORT);