From 56fb5e29c0232b3f7263f80a7e4075c286216efc Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 25 Apr 2007 18:48:06 +0000 Subject: 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 --- crawl-ref/source/tags.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source/tags.cc') 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++) -- cgit v1.2.3-54-g00ecf