diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-01-01 05:02:09 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-01-03 04:45:59 +0100 |
commit | 405e9b68034c5e8793f6c169cbed7dd90d4ac8ba (patch) | |
tree | 792e3efe617bb42cfd8dadfb2c20947cad734e74 /crawl-ref/source/dgn-labyrinth.cc | |
parent | 29969a4f936d3357f5f25971cbff31c026872a29 (diff) | |
download | crawl-ref-405e9b68034c5e8793f6c169cbed7dd90d4ac8ba.tar.gz crawl-ref-405e9b68034c5e8793f6c169cbed7dd90d4ac8ba.zip |
Use branch depth rather than absolute depth as the authoritative one.
Diffstat (limited to 'crawl-ref/source/dgn-labyrinth.cc')
-rw-r--r-- | crawl-ref/source/dgn-labyrinth.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/dgn-labyrinth.cc b/crawl-ref/source/dgn-labyrinth.cc index 00d44f88e4..380f08c268 100644 --- a/crawl-ref/source/dgn-labyrinth.cc +++ b/crawl-ref/source/dgn-labyrinth.cc @@ -15,6 +15,7 @@ #include "misc.h" #include "mon-pathfind.h" #include "mon-place.h" +#include "place.h" typedef std::list<coord_def> coord_list; @@ -108,7 +109,7 @@ static void _labyrinth_place_items(const coord_def &end) const int treasure_item = items(1, glopop, OBJ_RANDOM, true, - one_chance_in(3)? you.absdepth0 * 3 : MAKE_GOOD_ITEM, + one_chance_in(3)? absdungeon_depth() * 3 : MAKE_GOOD_ITEM, MAKE_ITEM_RANDOM_RACE); if (treasure_item != NON_ITEM) |