summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorAlex MacDonald <alex@alexjmacdonald.com>2009-11-15 03:13:28 -0500
committerDavid Ploog <dploog@users.sourceforge.net>2009-11-16 05:30:04 +0100
commit9282c221f93706907095680b1156ab8861640eba (patch)
treebe60390f697b420cbb09394583da140200cf6583 /crawl-ref/source/spl-cast.cc
parente3afab40e6c4b0c52f21c74a2fa2b249be8ebc6c (diff)
downloadcrawl-ref-9282c221f93706907095680b1156ab8861640eba.tar.gz
crawl-ref-9282c221f93706907095680b1156ab8861640eba.zip
Kikubaaqdgha finetuning.
Kiku corpse invocation now costs less piety and hunger. Kiku accepts all forms of killing, now including demons. Kiku wrath buffed severely; player can expect miasma, titan zombies, and necromantic miscasts. Casting necromantic spells will also incur miscast effects (but not cause the spell to fail). Kiku '?/G' flavor text updated. Signed-off-by: David Ploog <dploog@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 8a06bc341e..5d441a8956 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -1258,6 +1258,19 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail)
// is a player controllable act. - bwr
if (one_chance_in(12))
dec_penance(GOD_SIF_MUNA, 1);
+
+ } else if (spell_typematch(spell, SPTYP_NECROMANCY) &&
+ you.religion != GOD_KIKUBAAQUDGHA &&
+ you.penance[GOD_KIKUBAAQUDGHA] && one_chance_in(20))
+ {
+ // And you thought you'd Necromutate your way out of penance...
+ god_speaks(GOD_KIKUBAAQUDGHA,
+ "Kikubaaqudgha does not allow the disloyal to dabble in death!");
+
+ // The spell still goes through, but you get a miscast anyway.
+ MiscastEffect(&you, -god, SPTYP_NECROMANCY,
+ (you.experience_level / 2) + (spell_mana(spell) * 2),
+ random2avg(88, 3), "the malice of Kikubaaqudgha");
}
const int spfail_chance = spell_fail(spell);