summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
diff options
context:
space:
mode:
authorevktalo <evktalo@users.sourceforge.net>2009-10-02 00:13:21 +0300
committerevktalo <evktalo@users.sourceforge.net>2009-10-02 00:13:21 +0300
commit2a56957bec723bd5a9b842b503ba3c6e7e0f0ec0 (patch)
tree4800abc6358fd2a683820abd7ec3455f8671f936 /crawl-ref/source/food.cc
parent60c100224a47bad1faaecaf1dba27f9562e23256 (diff)
downloadcrawl-ref-2a56957bec723bd5a9b842b503ba3c6e7e0f0ec0.tar.gz
crawl-ref-2a56957bec723bd5a9b842b503ba3c6e7e0f0ec0.zip
Applying Kiku patch by Alex MacDonald (timecircuits). Kiku now has an invocation to provide corpses, provides (partial) torment resistance, provides torment when butchering while praying, and gifts Necromancy books. As the final gift, the player can choose between blessing the wielded weapon with Pain brand, or Necronomicon.
Flavour and help texts haven't been altered yet. Signed-off-by: evktalo <evktalo@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r--crawl-ref/source/food.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc
index 12089b509c..712ffef62b 100644
--- a/crawl-ref/source/food.cc
+++ b/crawl-ref/source/food.cc
@@ -29,6 +29,7 @@ REVISION("$Rev$");
#include "command.h"
#include "debug.h"
#include "delay.h"
+#include "effects.h"
#include "initfile.h"
#include "invent.h"
#include "items.h"
@@ -360,7 +361,18 @@ static bool _butcher_corpse(int corpse_id, bool first_corpse = true,
&& god_likes_butchery(you.religion);
if (can_sac && !rotten)
+ {
start_delay(DELAY_OFFER_CORPSE, 0, corpse_id);
+
+ // Kiku torments if you butcher a corpse while praying
+ bool kiku_torments = (you.religion == GOD_KIKUBAAQUDGHA && you.piety > 120);
+ if (kiku_torments)
+ {
+ simple_god_message(" inflicts torment against the living!");
+ torment(TORMENT_GENERIC, you.pos());
+ you.piety -= 8 + random2(4); // 8 to 12
+ }
+ }
else
{
if (can_sac && rotten)