diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-13 02:05:34 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-13 02:05:34 +0000 |
commit | 9e6fb5de4cf9c3eb3ffe4e7eb9b594b40ae81e14 (patch) | |
tree | 838c474a7a37502956e08d12716409b56399dac0 /crawl-ref/source/religion.cc | |
parent | 42d0d63ae25d7ec3e5ded02ae77489cc5e8371f9 (diff) | |
download | crawl-ref-9e6fb5de4cf9c3eb3ffe4e7eb9b594b40ae81e14.tar.gz crawl-ref-9e6fb5de4cf9c3eb3ffe4e7eb9b594b40ae81e14.zip |
Zooko's Xom patch (piety handling and whether his acts are good or bad).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7817 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 4d91c295b5..75582618fb 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -6536,40 +6536,8 @@ void handle_god_time() switch (you.religion) { case GOD_XOM: - { - // Xom semi-randomly drifts your piety. - int delta; - const char *origfavour = describe_xom_favour(); - const bool good = you.piety > (MAX_PIETY / 2); - int size = abs(you.piety - 100); - delta = (x_chance_in_y(511, 1000) ? 1 : -1); - size += delta; - you.piety = (MAX_PIETY / 2) + (good ? size : -size); - const char *newfavour = describe_xom_favour(); - if (strcmp(origfavour, newfavour)) - { - // Dampen oscillation across announcement boundaries. - size += delta * 2; - you.piety = (MAX_PIETY / 2) + (good ? size : -size); - } - - // ...but he gets bored... (I re-use gift_timeout for this - // instead of making a separate field because I don't want - // to learn how to save and restore a new field). In this - // usage, the "gift" is the gift you give to Xom of - // something interesting happening. - if (you.gift_timeout == 1) - { - simple_god_message(" is getting BORED."); - you.gift_timeout = 0; - } - else if (you.gift_timeout > 1) - you.gift_timeout -= random2(2); - - if (one_chance_in(20)) - xom_acts(abs(you.piety - 100)); + xom_tick(); break; - } // These gods like long-standing worshippers. case GOD_ELYVILON: |