summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.h
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-02-04 21:06:16 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-02-09 14:09:06 -0700
commit57e2a1b88cdfb357ea020a44b7c0f69cdd17ea8a (patch)
treea31fc3cf58f19c5a1d484c1db4632d6724c544e4 /crawl-ref/source/religion.h
parentb5a132a165d97a0dc13340c4d589cc167aeeee09 (diff)
downloadcrawl-ref-57e2a1b88cdfb357ea020a44b7c0f69cdd17ea8a.tar.gz
crawl-ref-57e2a1b88cdfb357ea020a44b7c0f69cdd17ea8a.zip
Make divine wrath contingent on XP gain.
For every 1% of an XL you gain, there's a 10% chance of any particular god angry at you attempting divine retribution on the next "every 20 aut" timer (i.e. 100% chance of *someone* throwing wrath at you if you have ten angry gods; less for less gods). This translates into ten wraths per XL, which, on an average of 2 penance lost per wrath, means 20 penance is on average equal to one XL worth of wrath. For perspective, the following penance values are used on abandonment: - 25: Cheibriados, Dith, Makhleb, Vehumet, Zin - 30: Elyvilon, Fedhas, Jiyva, Kiku, Yred, TSO - 50: Beogh, Dithmengos, Lugonu, Sif Muna, Trog - 150: Nemelex Xobeh (but only active above 100 penance) ...so for the "normal" wraths (Ashenzari wrath is already special), you can expect wrath to last either 1.25 XL, 1.5 XL, or 3 XL (or an equivalent amount of experience). In practice, because wraths still - at their core - happen on a timer, you end up with wrath either during or after significant battles, when the player is depleted - exactly when an angry god would try to kill you. These numbers can probably be fudged further; I think this may make wrath happen too often (even if it's at relevant times), but time will tell.
Diffstat (limited to 'crawl-ref/source/religion.h')
-rw-r--r--crawl-ref/source/religion.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/religion.h b/crawl-ref/source/religion.h
index 08ff081dc0..e007fad87c 100644
--- a/crawl-ref/source/religion.h
+++ b/crawl-ref/source/religion.h
@@ -78,6 +78,7 @@ bool god_can_protect_from_harm(god_type god);
int elyvilon_lifesaving();
bool god_protects_from_harm();
bool jiyva_is_dead();
+void set_penance_xp_timeout();
bool fedhas_protects(const monster* target);
bool fedhas_neutralises(const monster* target);
void print_sacrifice_message(god_type, const item_def &,