diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-09-02 17:57:08 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-09-03 21:33:07 +0200 |
commit | d9674dfee0f50b60027fd9c126e5e0cebfab6b2b (patch) | |
tree | 0f978c45f9d125fcf4c78cffa8000cbf91460f7b /crawl-ref/source/dbg-maps.cc | |
parent | 32698bfae152046671d0a4ded9e95219a5b7c9d2 (diff) | |
download | crawl-ref-d9674dfee0f50b60027fd9c126e5e0cebfab6b2b.tar.gz crawl-ref-d9674dfee0f50b60027fd9c126e5e0cebfab6b2b.zip |
A too ugly to live hack for a mapstat failure.
A real fix would be to skip disabled roulette branches, but I think a full
coverage in a single iteration might be worth such a workaround.
There's just one vault with this problem, as far as I know.
Diffstat (limited to 'crawl-ref/source/dbg-maps.cc')
-rw-r--r-- | crawl-ref/source/dbg-maps.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/dbg-maps.cc b/crawl-ref/source/dbg-maps.cc index 27bbb09d41..c15e072303 100644 --- a/crawl-ref/source/dbg-maps.cc +++ b/crawl-ref/source/dbg-maps.cc @@ -171,6 +171,14 @@ static bool mg_build_dungeon() const level_id &lid = places[i]; you.where_are_you = lid.branch; you.depth = lid.depth; + + // An unholy hack, FIXME! + if (startdepth[BRANCH_FOREST] == -1 + && lid.branch == BRANCH_FOREST && lid.depth == 5) + { + you.unique_creatures.set(MONS_THE_ENCHANTRESS, false); + } + if (!mg_do_build_level(1)) return false; } |