summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-16 22:41:29 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-16 22:41:29 +0000
commit7e3641ff78ff274fbb50365955cac80c6826d63b (patch)
tree0f940b1f73e6699107a445f4120b5baef542bc2a /crawl-ref
parent60883cc9925a1556894b259defbb255d4ec5373d (diff)
downloadcrawl-ref-7e3641ff78ff274fbb50365955cac80c6826d63b.tar.gz
crawl-ref-7e3641ff78ff274fbb50365955cac80c6826d63b.zip
Fix [2500622]: Xom dislikes some spell types and disciplines for the
purpose of determining which artefact spellbooks get his name on them, but he doesn't dislike any spellbooks or rods (or any items for that matter). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8474 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/religion.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 2b2ad95b1b..eb6af3c9af 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -467,7 +467,6 @@ std::string get_god_powers(god_type which_god)
std::string get_god_likes(god_type which_god, bool verbose)
{
- // Return early for the special cases.
if (which_god == GOD_NO_GOD || which_god == GOD_XOM)
return "";
@@ -3624,6 +3623,9 @@ bool good_god_dislikes_item_handling(const item_def &item)
bool god_dislikes_item_handling(const item_def &item)
{
+ if (you.religion == GOD_XOM)
+ return (false);
+
switch (you.religion)
{
case GOD_ZIN: