diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-10-04 16:12:55 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-10-04 16:14:29 +0200 |
commit | 2ea6c124b5a66ee20e28bbef4150770923ca42f9 (patch) | |
tree | df2168d48c9b8b1648c039b0cc832606ea3e9c2f /crawl-ref/source/stash.h | |
parent | 623cdf4465be86f4d45d7ba473fdc6340a75ec0d (diff) | |
download | crawl-ref-2ea6c124b5a66ee20e28bbef4150770923ca42f9.tar.gz crawl-ref-2ea6c124b5a66ee20e28bbef4150770923ca42f9.zip |
Fix auto_sacrifice stopping on coprse piles.
It only stops if the stack contains at least one unknown
non-sacrificeable item.
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r-- | crawl-ref/source/stash.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h index e81698bcee..1e5c006c1c 100644 --- a/crawl-ref/source/stash.h +++ b/crawl-ref/source/stash.h @@ -57,6 +57,10 @@ public: // Returns true if this Stash contains items that can be sacrificied bool sacrificeable() const; + // Returns true if this Stash contain items not handled by autopickup and + // auto_sacrifce + bool needs_stop() const; + // Returns true if this Stash is unverified (a visit by the character will // verify the stash). bool unverified() const; @@ -254,8 +258,8 @@ public: bool shop_needs_visit(const coord_def& c) const; // Returns true if the items at c are not fully known to the stash-tracker - // and can be updated if the character steps on the square. - bool unverified_stash(const coord_def &c) const; + // and the items are not all handled by autopickup/auto_sacrifice. + bool needs_stop(const coord_def &c) const; // Returns true if the items at c contains at least one that can be // sacrificied |