summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tag-version.h
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-02-04 19:36:57 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-02-09 14:09:02 -0700
commitb5a132a165d97a0dc13340c4d589cc167aeeee09 (patch)
treef277bd0442237959c335146b9f93dfc722f06f7e /crawl-ref/source/tag-version.h
parentb6c2c797741ae9d739a63a4a17db2476716fe0e0 (diff)
downloadcrawl-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/tag-version.h')
-rw-r--r--crawl-ref/source/tag-version.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/tag-version.h b/crawl-ref/source/tag-version.h
index 8deb1d7e16..4d9b7ffb32 100644
--- a/crawl-ref/source/tag-version.h
+++ b/crawl-ref/source/tag-version.h
@@ -77,6 +77,7 @@ enum tag_minor_version
TAG_MINOR_ABIL_GOD_FIXUP, // Movement of some non-god-specific abils.
TAG_MINOR_NEMELEX_DUNGEONS, // Make nemelex not give/track decks of dungeons.
TAG_MINOR_DEMONSPAWN, // Save compat wrt demonspawn enemies.
+ TAG_MINOR_EVENT_TIMERS, // "Every 20 turn" effects are less determinstic.
#endif
NUM_TAG_MINORS,
TAG_MINOR_VERSION = NUM_TAG_MINORS - 1