From 575d9572e7cdddccb0e77082bcd28397e5d4709b Mon Sep 17 00:00:00 2001 From: codinablack Date: Fri, 13 Dec 2024 16:12:04 -0600 Subject: [PATCH] Resolve Display error in item description for percent based stats. --- src/item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item.cpp b/src/item.cpp index 1d5b3743..b41ddd10 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -2075,7 +2075,7 @@ void handleStatsPercentDescription(std::ostringstream& s, const ItemType& it, bo s << ", "; } - s << getStatName(i) << ' ' << std::showpos << it.abilities->statsPercent[i] << std::noshowpos; + s << getStatName(i) << ' ' << std::showpos << (it.abilities->statsPercent[i] - 100) << "%" << std::noshowpos; } }