summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authorAlex MacDonald <alex@alexjmacdonald.com>2009-11-13 16:13:41 -0500
committerAdam Borowski <kilobyte@angband.pl>2009-11-14 01:21:47 +0100
commit8784d423f3ba3834d8d75310dc06202f458fa3f9 (patch)
treecf2806fd93ce5d8b7e3a6ddeffc5db1a7a022f72 /crawl-ref/source/religion.cc
parente7d868d98dd3553a0bf6ed9fa68d36b99391b1bb (diff)
downloadcrawl-ref-8784d423f3ba3834d8d75310dc06202f458fa3f9.tar.gz
crawl-ref-8784d423f3ba3834d8d75310dc06202f458fa3f9.zip
Tied up loose ends regarding prayer to offer corpses to gods. Kiku now invokes torment when corpses are offered via prayer, in the same way that other gods accept corpses for piety. god_likes_butchery() has been removed and tutorial messages referencing the old style of offering corpses have been updated.
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc29
1 files changed, 18 insertions, 11 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index e51a7a9a5a..d73c96a309 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -2338,7 +2338,7 @@ static bool _god_accepts_prayer(god_type god)
return (true);
}
- if (god_likes_fresh_corpses(god) || god_likes_butchery(god))
+ if (god_likes_fresh_corpses(god))
return (true);
switch (god)
@@ -2346,6 +2346,9 @@ static bool _god_accepts_prayer(god_type god)
case GOD_ZIN:
return (zin_sustenance(false));
+ case GOD_KIKUBAAQUDGHA:
+ return (you.piety >= piety_breakpoint(4));
+
case GOD_YREDELEMNUL:
return (yred_injury_mirror(false));
@@ -2457,11 +2460,11 @@ void pray()
// Assume for now that gods who like fresh corpses and/or butchery
// don't use prayer for anything else.
if (you.religion == GOD_ZIN
+ || you.religion == GOD_KIKUBAAQUDGHA
|| you.religion == GOD_BEOGH
|| you.religion == GOD_NEMELEX_XOBEH
|| you.religion == GOD_JIYVA
- || god_likes_fresh_corpses(you.religion)
- || god_likes_butchery(you.religion))
+ || god_likes_fresh_corpses(you.religion))
{
you.duration[DUR_PRAYER] = 1;
}
@@ -2471,8 +2474,8 @@ void pray()
you.duration[DUR_PRAYER] = 20;
}
- // Gods who like fresh corpses, Beoghites and Nemelexites offer the
- // items they're standing on.
+ // Gods who like fresh corpses, Kikuites, Beoghites and
+ // Nemelexites offer the items they're standing on.
if (altar_god == GOD_NO_GOD
&& (god_likes_fresh_corpses(you.religion)
|| you.religion == GOD_BEOGH || you.religion == GOD_NEMELEX_XOBEH))
@@ -4861,6 +4864,14 @@ void offer_items()
_show_pure_deck_chances();
#endif
}
+
+ if (num_sacced > 0 && you.religion == GOD_KIKUBAAQUDGHA)
+ {
+ simple_god_message(" torments the living!");
+ torment(TORMENT_KIKUBAAQUDGHA, you.pos());
+ you.piety -= 8 + random2(4); // costs 8 - 12 piety
+ }
+
// Explanatory messages if nothing the god likes is sacrificed.
else if (num_sacced == 0 && num_disliked > 0)
{
@@ -5144,12 +5155,8 @@ bool god_likes_fresh_corpses(god_type god)
return (god == GOD_OKAWARU
|| god == GOD_MAKHLEB
|| god == GOD_TROG
- || god == GOD_LUGONU);
-}
-
-bool god_likes_butchery(god_type god)
-{
- return (god == GOD_KIKUBAAQUDGHA && you.piety >= piety_breakpoint(4));
+ || god == GOD_LUGONU
+ || (god == GOD_KIKUBAAQUDGHA && you.piety >= piety_breakpoint(4)));
}
bool god_hates_butchery(god_type god)