summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc23
1 files changed, 13 insertions, 10 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 512c29a470..bce9bc8bbd 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -2238,23 +2238,26 @@ void god_speaks(god_type god, const char *mesg)
mpr(mesg, MSGCH_GOD, god);
}
-god_type do_god_vengeance(conduct_type thing_done)
+bool do_god_vengeance(conduct_type thing_done)
{
- god_type god = GOD_NO_GOD;
+ bool retval = false;
- if (thing_done == DID_DESTROY_ORCISH_IDOL)
+ switch (thing_done)
{
- god = GOD_BEOGH;
+ case DID_DESTROY_ORCISH_IDOL:
+ retval = true;
beogh_idol_revenge();
- }
- else if (thing_done == DID_KILL_HOLY
- || thing_done == DID_HOLY_KILLED_BY_SERVANT)
- {
- god = GOD_SHINING_ONE;
+ break;
+ case DID_KILL_HOLY:
+ case DID_HOLY_KILLED_BY_SERVANT:
+ retval = true;
tso_holy_revenge();
+ break;
+ default:
+ break;
}
- return (god);
+ return (retval);
}
// This function is the merger of done_good() and naughty().