diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-05-15 03:24:13 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-05-15 03:24:13 -0400 |
commit | edfd7eb51961a35036c63ebb29abd80aa9fd1175 (patch) | |
tree | df513ea9ab8e3bf490925e7a2c83ec37f29d463b /crawl-ref/source/traps.cc | |
parent | 9817b298c425eafc2a629c1e93d43a52a1d0b7e8 (diff) | |
download | crawl-ref-edfd7eb51961a35036c63ebb29abd80aa9fd1175.tar.gz crawl-ref-edfd7eb51961a35036c63ebb29abd80aa9fd1175.zip |
Clean-up shaft_known() (MarvinPA)
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r-- | crawl-ref/source/traps.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc index c0338c27dd..702f4158d5 100644 --- a/crawl-ref/source/traps.cc +++ b/crawl-ref/source/traps.cc @@ -1680,19 +1680,6 @@ bool is_valid_shaft_level(const level_id &place) return (brdepth[place.branch] - place.depth) >= min_delta; } -// Shafts can be generated visible. -// -// Starts about 50% of the time and approaches 0% for randomly -// placed traps, and starts at 100% and approaches 50% for -// others (e.g. at end of corridor). -bool shaft_known(int depth, bool randomly_placed) -{ - if (randomly_placed) - return coinflip() && x_chance_in_y(3, depth); - else - return coinflip() || x_chance_in_y(3, depth); -} - static level_id _generic_shaft_dest(level_pos lpos, bool known = false) { level_id lid = lpos.id; |