summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-25 20:32:26 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-25 20:32:26 +0000
commit1e68e1b5e7c55a8607c1a3626fdaa8c421bdb737 (patch)
treeefe0e1104620de0db5faf0b4dff92478ab9a46b0 /crawl-ref/source/religion.cc
parent3dd208ed66cd3ac333b3c06afe1c4aba53527ec7 (diff)
downloadcrawl-ref-1e68e1b5e7c55a8607c1a3626fdaa8c421bdb737.tar.gz
crawl-ref-1e68e1b5e7c55a8607c1a3626fdaa8c421bdb737.zip
Yred flavor, part 1: Make him appreciate your killing holy beings.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6990 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index a3b4294c12..2d35d8938e 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -568,6 +568,10 @@ std::string get_god_likes(god_type which_god, bool verbose)
likes.push_back("kill living evil beings");
break;
+ case GOD_YREDELEMNUL:
+ likes.push_back("kill holy beings");
+ break;
+
case GOD_BEOGH:
likes.push_back("kill the priests of other religions");
break;
@@ -2471,6 +2475,15 @@ bool did_god_conduct(conduct_type thing_done, int level, bool known,
ret = true;
if (random2(level + 18) > 2)
piety_change = 1;
+
+ if (you.religion == GOD_YREDELEMNUL && thing_done == DID_KILL_HOLY)
+ {
+ simple_god_message(" appreciates your killing of a "
+ "holy being.");
+ ret = true;
+ if (random2(level + 10) > 5)
+ piety_change = 1;
+ }
break;
default: