From 1e68e1b5e7c55a8607c1a3626fdaa8c421bdb737 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 25 Sep 2008 20:32:26 +0000 Subject: 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 --- crawl-ref/source/religion.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'crawl-ref/source/religion.cc') 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: -- cgit v1.2.3-54-g00ecf