summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-03 13:33:39 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-03 13:33:39 +0000
commitaa745ecf84010c0d444a07e33a8c8036cd1366aa (patch)
tree15b922ddca9b72f966e28fcf049dade10046dbf7 /crawl-ref/source/religion.cc
parente7e68563e104e986a4771e0667dfc12124ab4013 (diff)
downloadcrawl-ref-aa745ecf84010c0d444a07e33a8c8036cd1366aa.tar.gz
crawl-ref-aa745ecf84010c0d444a07e33a8c8036cd1366aa.zip
[1709687] Fixed Vehumet and Lugonu not accepting kills by undead slaves.
Fixed Lugonu not accepting butchered corpses. Fixed Elyvilon not being angered by butchery while praying. Moved item sacrifice messages to the god channel. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1520 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc24
1 files changed, 19 insertions, 5 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 9e7cc8db15..73c8efd006 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -1087,6 +1087,9 @@ bool did_god_conduct( int thing_done, int level )
{
case GOD_KIKUBAAQUDGHA:
case GOD_YREDELEMNUL:
+ case GOD_VEHUMET:
+ case GOD_MAKHLEB:
+ case GOD_LUGONU:
simple_god_message(" accepts your slave's kill.");
ret = true;
if (random2(level + 10 - you.experience_level/3) > 5)
@@ -2151,7 +2154,7 @@ void offer_items()
case GOD_OKAWARU:
case GOD_MAKHLEB:
case GOD_NEMELEX_XOBEH:
- mprf("%s%s", mitm[i].name(DESC_CAP_THE).c_str(),
+ mprf(MSGCH_GOD, "%s%s", mitm[i].name(DESC_CAP_THE).c_str(),
sacrifice_message(you.religion, mitm[i]).c_str());
#ifdef DEBUG_DIAGNOSTICS
@@ -2169,7 +2172,7 @@ void offer_items()
break;
case GOD_SIF_MUNA:
- mprf("%s%s", mitm[i].name(DESC_CAP_THE).c_str(),
+ mprf(MSGCH_GOD, "%s%s", mitm[i].name(DESC_CAP_THE).c_str(),
sacrifice_message(you.religion, mitm[i]).c_str());
if (value >= 150)
@@ -2183,7 +2186,7 @@ void offer_items()
if (mitm[i].base_type != OBJ_CORPSES)
break;
- mprf("%s%s", mitm[i].name(DESC_CAP_THE).c_str(),
+ mprf(MSGCH_GOD, "%s%s", mitm[i].name(DESC_CAP_THE).c_str(),
sacrifice_message(you.religion, mitm[i]).c_str());
gain_piety(1);
@@ -2197,7 +2200,7 @@ void offer_items()
break;
}
- mprf("%s%s", mitm[i].name(DESC_CAP_THE).c_str(),
+ mprf(MSGCH_GOD, "%s%s", mitm[i].name(DESC_CAP_THE).c_str(),
sacrifice_message(you.religion, mitm[i]).c_str());
if (random2(value) >= random2(50)
@@ -2313,9 +2316,20 @@ void god_pitch(god_type which_god)
redraw_skill( you.your_name, player_title() );
} // end god_pitch()
+bool god_likes_butchery(god_type god)
+{
+ return (you.religion == GOD_OKAWARU || you.religion == GOD_MAKHLEB ||
+ you.religion == GOD_TROG || you.religion == GOD_LUGONU);
+}
+
+bool god_hates_butchery(god_type god)
+{
+ return (god == GOD_ELYVILON);
+}
+
void offer_corpse(int corpse)
{
- mprf("%s%s", mitm[corpse].name(DESC_CAP_THE).c_str(),
+ mprf(MSGCH_GOD, "%s%s", mitm[corpse].name(DESC_CAP_THE).c_str(),
sacrifice_message(you.religion, mitm[corpse]).c_str());
did_god_conduct(DID_DEDICATED_BUTCHERY, 10);