diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-01 11:59:18 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-01 11:59:18 +0000 |
commit | b0bb78bd1d4f2364fb560ce31dadd878d3253573 (patch) | |
tree | 2ca8deb6038537b73f70788bd8a424cf982eb87a /crawl-ref/source/religion.h | |
parent | 22995abf93b5514ed2b71219a693355ae9f7281f (diff) | |
download | crawl-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.h')
-rw-r--r-- | crawl-ref/source/religion.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.h b/crawl-ref/source/religion.h index 669b474e72..092de3edd0 100644 --- a/crawl-ref/source/religion.h +++ b/crawl-ref/source/religion.h @@ -52,4 +52,7 @@ bool ely_destroy_weapons(); bool trog_burn_books(); bool tso_stab_safe_monster(const actor *act); +bool is_evil_god(god_type god); +bool is_good_god(god_type god); + #endif |