diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-02-04 19:36:57 -0700 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-02-09 14:09:02 -0700 |
commit | b5a132a165d97a0dc13340c4d589cc167aeeee09 (patch) | |
tree | f277bd0442237959c335146b9f93dfc722f06f7e /crawl-ref/source/religion.h | |
parent | b6c2c797741ae9d739a63a4a17db2476716fe0e0 (diff) | |
download | crawl-ref-b5a132a165d97a0dc13340c4d589cc167aeeee09.tar.gz crawl-ref-b5a132a165d97a0dc13340c4d589cc167aeeee09.zip |
Make "every 20 turns" effects happen less predictably.
This introduces event timers that schedule the next time the code
handling one of these effects - including such things as hell effects,
glowsplosions, and divine retribution - to happen a random amount of
time after the current time the event runs.
Most things are called every 100-300 aut (or a multiplier thereof); a
minimum delay between instances seems appropriate, as does a maximum.
I'm not completely satisfied with this implementation, but it gets the
job done.
Diffstat (limited to 'crawl-ref/source/religion.h')
-rw-r--r-- | crawl-ref/source/religion.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/religion.h b/crawl-ref/source/religion.h index 5d2dce149b..08ff081dc0 100644 --- a/crawl-ref/source/religion.h +++ b/crawl-ref/source/religion.h @@ -50,7 +50,7 @@ void gain_piety(int pgn, int denominator = 1, void dock_piety(int pietyloss, int penance); void god_speaks(god_type god, const char *mesg); void lose_piety(int pgn); -void handle_god_time(void); +void handle_god_time(int time_delta); int god_colour(god_type god); colour_t god_message_altar_colour(god_type god); bool player_can_join_god(god_type which_god); |