summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-01 11:59:18 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-01 11:59:18 +0000
commitb0bb78bd1d4f2364fb560ce31dadd878d3253573 (patch)
tree2ca8deb6038537b73f70788bd8a424cf982eb87a /crawl-ref/source/religion.cc
parent22995abf93b5514ed2b71219a693355ae9f7281f (diff)
downloadcrawl-ref-b0bb78bd1d4f2364fb560ce31dadd878d3253573.tar.gz
crawl-ref-b0bb78bd1d4f2364fb560ce31dadd878d3253573.zip
Added you.good_god() and you.evil_god() to check if the player is worshipping a good/evil god. Passing a god name is optional, and will check if that god is good/evil (you.good_god("Elyvilon") == true).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2715 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 8aab39d714..e924109a87 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -359,7 +359,7 @@ void inc_penance(int god, int val);
void inc_penance(int val);
static bool followers_abandon_you(void); // Beogh
-static bool is_evil_god(god_type god)
+bool is_evil_god(god_type god)
{
return
god == GOD_KIKUBAAQUDGHA ||
@@ -370,7 +370,7 @@ static bool is_evil_god(god_type god)
god == GOD_LUGONU;
}
-static bool is_good_god(god_type god)
+bool is_good_god(god_type god)
{
return
god == GOD_SHINING_ONE ||