From 5d251361b0e48cdddf3f2dd6fc1a97e083bd14f0 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 25 Oct 2023 15:07:09 -0700 Subject: [PATCH] fix negative bonuses in item descriptions --- src/ItemData.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ItemData.cc b/src/ItemData.cc index e8fa94a2..bf819c54 100644 --- a/src/ItemData.cc +++ b/src/ItemData.cc @@ -1888,7 +1888,7 @@ string ItemData::name(bool include_color_codes) const { } } else { // Not S-rank (extended name bits not set) - parray percentages(0); + parray percentages(0); for (size_t x = 0; x < 3; x++) { uint8_t which = this->data1[6 + 2 * x]; uint8_t value = this->data1[7 + 2 * x]; @@ -1902,7 +1902,7 @@ string ItemData::name(bool include_color_codes) const { } } if (!percentages.is_filled_with(0)) { - ret_tokens.emplace_back(string_printf("%hhu/%hhu/%hhu/%hhu/%hhu", + ret_tokens.emplace_back(string_printf("%hhd/%hhd/%hhd/%hhd/%hhd", percentages[0], percentages[1], percentages[2], percentages[3], percentages[4])); } }