summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorelliptic <hyperelliptical@gmail.com>2014-05-15 16:13:54 -0400
committerelliptic <hyperelliptical@gmail.com>2014-05-15 16:15:27 -0400
commitdc07b5ecc06bef2ef2596b09cc4e4297cc5649f9 (patch)
tree49adffcbd5565b3bc5e923b82abe776a1a3159b0 /crawl-ref/source/effects.cc
parenta4f4e44c7d95696e2ca8f571c647511e670fd3f1 (diff)
downloadcrawl-ref-dc07b5ecc06bef2ef2596b09cc4e4297cc5649f9.tar.gz
crawl-ref-dc07b5ecc06bef2ef2596b09cc4e4297cc5649f9.zip
Remove random amnesia from Sif wrath.
It rarely did anything more interesting than cause the player to ctrl-F for the spell and relearn it.
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 5fad5fa939..3906f8ad46 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -430,37 +430,6 @@ void banished(const string &who)
}
}
-bool forget_spell(void)
-{
- ASSERT(!crawl_state.game_is_arena());
-
- if (!you.spell_no)
- return false;
-
- // find a random spell to forget:
- int slot = -1;
- int num = 0;
-
- for (int i = 0; i < MAX_KNOWN_SPELLS; i++)
- {
- if (you.spells[i] != SPELL_NO_SPELL)
- {
- num++;
- if (one_chance_in(num))
- slot = i;
- }
- }
-
- if (slot == -1) // should never happen though
- return false;
-
- mprf("Your knowledge of %s becomes hazy all of a sudden, and you forget "
- "the spell!", spell_title(you.spells[slot]));
-
- del_spell_from_memory_by_slot(slot);
- return true;
-}
-
void direct_effect(monster* source, spell_type spell,
bolt &pbolt, actor *defender)
{