diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-03-27 00:12:09 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-03-27 00:12:09 +0200 |
commit | 25daf8ecfabc000ee2c7b947454556d3ce6a319b (patch) | |
tree | 2f6e5fd8ad3e6b9df91b49ea968bd1ac2816fc5a /crawl-ref/source/ng-init.cc | |
parent | 2c8c99fec4aab48970d75030ece87dda40260e78 (diff) | |
download | crawl-ref-25daf8ecfabc000ee2c7b947454556d3ce6a319b.tar.gz crawl-ref-25daf8ecfabc000ee2c7b947454556d3ce6a319b.zip |
As a test, make Elf randomly 3 or 4 levels deep.
This disables itself automatically at 0.11 branching, but will probably be
removed earlier.
Diffstat (limited to 'crawl-ref/source/ng-init.cc')
-rw-r--r-- | crawl-ref/source/ng-init.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/ng-init.cc b/crawl-ref/source/ng-init.cc index c1d1def186..ec0bef42c6 100644 --- a/crawl-ref/source/ng-init.cc +++ b/crawl-ref/source/ng-init.cc @@ -60,6 +60,10 @@ void initialise_branches_for_game_type() for (int i = 0; i < NUM_BRANCHES; i++) brdepth[i] = branches[i].numlevels; + + // In trunk builds, test variable-length branches. + if (numcmp(Version::Long().c_str(), "0.11-b") == -1) + brdepth[BRANCH_ELVEN_HALLS] = random_range(3, 4); } // Determine starting depths of branches. |