Skip to content

Commit

Permalink
Resolve Display error in item description for percent based stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
Codinablack committed Dec 13, 2024
1 parent 5f45e69 commit 575d957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 575d957

Please sign in to comment.