From be5c9647b9a8ad3cc533358f720de36c58c7d7e4 Mon Sep 17 00:00:00 2001 From: Daneel Trevize Date: Mon, 23 Sep 2019 10:28:42 +0100 Subject: [PATCH 1/2] Fix typo in determining new wearable categories. --- src/item.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/item.cpp b/src/item.cpp index ae152ccea..29bb563c6 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -461,8 +461,8 @@ bool Item::operator<(const Item &rhs) const { bool Item::Wearable() const { return (category_ == "flasks" - || category_ == "amulet" || category_ == "ring" || category_ == "belt" - || category_.find("armour") != std::string::npos + || category_ == "amulets" || category_ == "rings" || category_ == "belts" + || category_.find("armours") != std::string::npos || category_.find("weapons") != std::string::npos || category_.find("jewels") != std::string::npos ); From d3e2d4ba09df434d131dcdb901c0f53cbec63b82 Mon Sep 17 00:00:00 2001 From: Daneel Trevize Date: Mon, 14 Oct 2019 16:45:53 +0100 Subject: [PATCH 2/2] Add Quivers to wearable/exportable set. --- src/item.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/item.cpp b/src/item.cpp index 29bb563c6..070467099 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -465,6 +465,7 @@ bool Item::Wearable() const { || category_.find("armours") != std::string::npos || category_.find("weapons") != std::string::npos || category_.find("jewels") != std::string::npos + || category_ == "quivers" ); }