make name-all-items more useful

This commit is contained in:
Martin Michelsen
2025-01-04 19:00:42 -08:00
parent 8508607c87
commit 1c5b0e4667
4 changed files with 65 additions and 17 deletions
+3
View File
@@ -35,6 +35,9 @@ public:
return this->name_index;
}
inline bool exists(const ItemData& item) const {
return this->primary_identifier_index.count(item.primary_identifier());
}
std::string describe_item(const ItemData& item, bool include_color_escapes = false) const;
ItemData parse_item_description(const std::string& description) const;