fix percentage display on weapon text generation

This commit is contained in:
Martin Michelsen
2022-10-29 19:28:00 -07:00
parent 2ce9e58177
commit ed81599cc9
+1 -1
View File
@@ -1540,7 +1540,7 @@ string name_for_item(const ItemData& item, bool include_color_codes) {
if (which > 5) {
ret_tokens.emplace_back(string_printf("!PC:%02hhX%02hhX", which, value));
} else {
percentages[which] = value;
percentages[which - 1] = value;
}
}
ret_tokens.emplace_back(string_printf("%hhu/%hhu/%hhu/%hhu/%hhu",