summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-25 18:48:06 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-25 18:48:06 +0000
commit56fb5e29c0232b3f7263f80a7e4075c286216efc (patch)
treea56d4888e9bdc97594cc91e24197155e5fc90336 /crawl-ref/source/tags.cc
parent3696d41c00d66d8e1a646d164a7fd1a933cbba13 (diff)
downloadcrawl-ref-56fb5e29c0232b3f7263f80a7e4075c286216efc.tar.gz
crawl-ref-56fb5e29c0232b3f7263f80a7e4075c286216efc.zip
OOD monster generation now starts only if you stay on a level for long enough
(700 turns on D:1, declining linearly to ~0 turns on D:7). Similar rules apply for extreme OOD generation. Breaks save compatibility with earlier 0.3 saves. Needs playtesting, perhaps some relaxation of the rules for moderate OODness if the monster mix gets too bland. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1368 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index d966ec3efc..c0fda9258e 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -1293,6 +1293,9 @@ static void tag_construct_level(struct tagHeader &th)
marshallShort(th, GXM);
// how many Y?
marshallShort(th, GYM);
+
+ marshallLong(th, env.turns_on_level);
+
for (count_x = 0; count_x < GXM; count_x++)
{
for (count_y = 0; count_y < GYM; count_y++)
@@ -1510,6 +1513,9 @@ static void tag_read_level( struct tagHeader &th, char minorVersion )
gx = unmarshallShort(th);
// how many Y?
gy = unmarshallShort(th);
+
+ env.turns_on_level = unmarshallLong(th);
+
for (i = 0; i < gx; i++)
{
for (j = 0; j < gy; j++)