fix equip state after item combinations applied

This commit is contained in:
Martin Michelsen
2024-05-04 20:39:52 -07:00
parent c411cec06c
commit 2e7c792b97
6 changed files with 29 additions and 13 deletions
+4 -1
View File
@@ -208,7 +208,10 @@ std::string ItemNameIndex::describe_item(const ItemData& item, bool include_colo
if (which == 0) {
continue;
}
if (which > 5) {
if (which & 0x80) {
uint16_t kill_count = ((which << 8) & 0x7F00) | (value & 0xFF);
ret_tokens.emplace_back(string_printf("K:%hu", kill_count));
} else if (which > 5) {
ret_tokens.emplace_back(string_printf("!PC:%02hhX%02hhX", which, value));
} else {
bonuses[which - 1] = value;