summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-height.h
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2012-07-05 23:53:53 +0200
committerRaphael Langella <raphael.langella@gmail.com>2012-07-17 01:00:25 +0200
commit410924b6f8f920b2b3f2f0b06a79b14e70e2f874 (patch)
tree26a2eebcba75a835033df5e881e54cf976291da4 /crawl-ref/source/dgn-height.h
parent7e4a16d5bd7991abfef63f37e42ac9ac0973c206 (diff)
downloadcrawl-ref-410924b6f8f920b2b3f2f0b06a79b14e70e2f874.tar.gz
crawl-ref-410924b6f8f920b2b3f2f0b06a79b14e70e2f874.zip
Show the autoexplore limit in Shoals.
The autoexplore is now limited to cells with a height > -18, which is about the sand limit at low tide. We say that beyond this point, the bottom changes from sand to rock and autoexplore won't try to go there, even if they are traverseable. This greatly reduce autoexplore time, and even amphibious species will respect it. It doesn't prevent a merfolk from crossing deep water to explore an island spotted over the water, but they won't randomly explore the sea. To illustrate the limit, shallow water is light cyan or cyan, deep water is light blue or blue.
Diffstat (limited to 'crawl-ref/source/dgn-height.h')
-rw-r--r--crawl-ref/source/dgn-height.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/dgn-height.h b/crawl-ref/source/dgn-height.h
index d6d99d113e..2683ebd2a9 100644
--- a/crawl-ref/source/dgn-height.h
+++ b/crawl-ref/source/dgn-height.h
@@ -5,6 +5,16 @@
#include "fixedarray.h"
#include <vector>
+enum shoals_height_thresholds
+{
+ SHT_UNDEFINED = -10000,
+ SHT_STONE = 400,
+ SHT_ROCK = 135,
+ SHT_FLOOR = 0,
+ SHT_SHALLOW_WATER = -30,
+ SHT_SHORE = -18, // sand limit at low tide
+};
+
// The caller is responsible for ensuring that env.heightmap is set.
static inline short &dgn_height_at(const coord_def &c)
{