diff options
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r-- | crawl-ref/source/stash.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc index 962883da9d..b0555abe6a 100644 --- a/crawl-ref/source/stash.cc +++ b/crawl-ref/source/stash.cc @@ -24,6 +24,7 @@ #include "menu.h" #include "message.h" #include "misc.h" +#include "notes.h" #include "overmap.h" #include "place.h" #include "shopping.h" @@ -393,6 +394,7 @@ public: StashMenu() : InvMenu(MF_SINGLESELECT), can_travel(false) { set_type(MT_PICKUP); + set_tag("stash"); // override "inventory" tag } unsigned char getkey() const; public: @@ -563,6 +565,7 @@ void Stash::write(std::ostream &os, bool identify) const { + activate_notes(false); if (!enabled || (items.size() == 0 && verified)) return; os << "(" << ((int) x - refx) << ", " << ((int) y - refy) << (place.length()? ", " + place : "") @@ -616,6 +619,7 @@ void Stash::write(std::ostream &os, if (items.size() <= 1 && !verified) os << " (unseen)" << std::endl; + activate_notes(true); } void Stash::save(FILE *file) const @@ -871,6 +875,7 @@ bool ShopInfo::matches_search(const std::string &prefix, void ShopInfo::write(std::ostream &os, bool identify) const { + activate_notes(false); os << "[Shop] " << name << std::endl; if (items.size() > 0) { @@ -891,6 +896,7 @@ void ShopInfo::write(std::ostream &os, bool identify) const os << " (Shop is empty)" << std::endl; else os << " (Shop contents are unknown)" << std::endl; + activate_notes(true); } void ShopInfo::save(FILE *file) const @@ -1536,6 +1542,7 @@ void StashTracker::display_search_results( bool travelable = can_travel_interlevel(); StashSearchMenu stashmenu; + stashmenu.set_tag("stash"); stashmenu.can_travel = travelable; std::string title = "match"; |