fix v1-encoded item descriptions

This commit is contained in:
Martin Michelsen
2024-03-01 23:19:18 -08:00
parent a2e3f4882d
commit d93e6405c3
4 changed files with 14 additions and 26 deletions
+1 -3
View File
@@ -97,9 +97,7 @@ const array<const char*, 0x11> name_for_s_rank_special = {
"King\'s",
};
std::string ItemNameIndex::describe_item(
const ItemData& item,
bool include_color_escapes) const {
std::string ItemNameIndex::describe_item(const ItemData& item, bool include_color_escapes) const {
if (item.data1[0] == 0x04) {
return string_printf("%s%" PRIu32 " Meseta", include_color_escapes ? "$C7" : "", item.data2d.load());
}