diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-10-28 15:04:46 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-28 15:04:46 +1100 |
commit | 391f148f11c90415f64b9cadc4ff88855cd5f432 (patch) | |
tree | f6238328bcec19ab5e91647fcb3799bf9c24698c | |
parent | e065981ce2490cca77a3785bba95715aa6eb3ac7 (diff) |
Update StarItemTooltip.cpp
-rw-r--r-- | source/frontend/StarItemTooltip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/frontend/StarItemTooltip.cpp b/source/frontend/StarItemTooltip.cpp index 7cec755..492672b 100644 --- a/source/frontend/StarItemTooltip.cpp +++ b/source/frontend/StarItemTooltip.cpp @@ -205,7 +205,7 @@ void ItemTooltipBuilder::describePersistentEffect( auto listItem = container->addItem(); listItem->fetchChild<ImageWidget>("statusImage") ->setImage(statsConfig.get(valueModifier->statName).getString("icon")); - listItem->setLabel("statusLabel", strf("{}{}", valueModifier->value < 0 ? "-" : "", valueModifier->value)); + listItem->setLabel("statusLabel", strf("{}{:.2f}", valueModifier->value < 0 ? "-" : "", valueModifier->value)); } } else if (auto effectiveMultiplier = modifierEffect->ptr<StatEffectiveMultiplier>()) { if (statsConfig.contains(effectiveMultiplier->statName)) { |