summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index 4a8c257e51..d0b640863d 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -136,9 +136,11 @@ bool xom_is_nice()
return (false);
if (you.religion == GOD_XOM)
+ {
// If you.gift_timeout was 0, then Xom was BORED. He HATES that.
return (you.gift_timeout > 0 && you.piety > random2(MAX_PIETY));
- else
+ }
+ else // CARD_XOM
return coinflip();
}
@@ -221,7 +223,7 @@ void xom_tick()
simple_god_message(" is getting BORED.");
if (one_chance_in(20))
- xom_acts(xom_is_nice());
+ xom_acts(abs(you.piety - MAX_PIETY/2));
}
void xom_is_stimulated(int maxinterestingness, const std::string& message,