Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Fix typo in determining new wearable categories. #552

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,11 @@ 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
|| category_ == "quivers"
);
}

Expand Down