diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-08-06 23:23:47 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-08-06 23:23:47 +0200 |
commit | e756234482a18ffc266c04a1b0a663570cde5676 (patch) | |
tree | b2172f30f89592bc6c7d17f054d8430226ef6331 /crawl-ref/source/stash.h | |
parent | 7ff7e2ba6580ac5151af3adeb7ec518bb8ad46bb (diff) | |
download | crawl-ref-e756234482a18ffc266c04a1b0a663570cde5676.tar.gz crawl-ref-e756234482a18ffc266c04a1b0a663570cde5676.zip |
New option for explore_stop: greedy_sacrificiable.
Defaults on. Makes explore go to sacrificiable items without the mess of the
previous implementation.
Should fix #5849, #6002 and #6003.
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r-- | crawl-ref/source/stash.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h index 8d079d8e64..f9a8b124cb 100644 --- a/crawl-ref/source/stash.h +++ b/crawl-ref/source/stash.h @@ -54,6 +54,9 @@ public: // autopickup. bool pickup_eligible() const; + // Returns true if this Stash contains items that can be sacrificied + bool sacrificiable() const; + // Returns true if this Stash is unverified (a visit by the character will // verify the stash). bool unverified() const; @@ -254,6 +257,10 @@ public: // and can be updated if the character steps on the square. bool unverified_stash(const coord_def &c) const; + // Returns true if the items at c contains at least one that can be + // sacrificied + bool sacrificiable(const coord_def &c) const; + // Add stash at (x,y), or player's current location if no parameters are // supplied void add_stash(int x = -1, int y = -1); |