diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-08 21:23:05 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-03-08 21:23:05 +0000 |
commit | 7751a0c56767cd51e8f854f1b42261424fa6e4d9 (patch) | |
tree | ac25ad46d83f8ecc4796ca4e540ecb3671095756 /crawl-ref | |
parent | b2be52a8b750f85a586ec399df8ae364df498cc2 (diff) | |
download | crawl-ref-7751a0c56767cd51e8f854f1b42261424fa6e4d9.tar.gz crawl-ref-7751a0c56767cd51e8f854f1b42261424fa6e4d9.zip |
Added dummy vault to prevent too much repetition of the early-game vaults (we
only have one early-game vault).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@998 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/dat/vaults.des | 21 | ||||
-rw-r--r-- | crawl-ref/source/maps.cc | 3 |
2 files changed, 24 insertions, 0 deletions
diff --git a/crawl-ref/source/dat/vaults.des b/crawl-ref/source/dat/vaults.des index 1e8320f963..dec39d1a79 100644 --- a/crawl-ref/source/dat/vaults.des +++ b/crawl-ref/source/dat/vaults.des @@ -4425,6 +4425,27 @@ ENDMAP # Regular vaults ############################################################################## +############################################################################## +# Dummy probability balancer vault for depths 1-11. +# +# Why this is necessary: there are very few vaults in the 1-11 range (entries +# are not considered here); to avoid too much repetition of the existing vaults, +# we use this dummy vault. + +NAME: dummy_balancer + +DEPTH: 1-11 +# Vaults tagged "dummy" are no-ops when the dungeon builder is looking for maps +# by depth. +TAGS: dummy + +ORIENT: float +CHANCE: 80 + +MAP +x +ENDMAP + ################################### # Hellmouth (Lemuel) # note that other than the imps, the demons here cannot fly diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc index f4e0033b2e..d76b8c4268 100644 --- a/crawl-ref/source/maps.cc +++ b/crawl-ref/source/maps.cc @@ -318,6 +318,9 @@ int random_map_for_depth(int depth, bool want_minivault) mapindex = i; } + if (mapindex != -1 && vdefs[mapindex].has_tag("dummy")) + mapindex = -1; + return (mapindex); } |