reduce armor stat to 1 decimal place since it was spilling a little
This commit is contained in:
parent
85a23231d4
commit
ed3793ab00
@ -364,16 +364,16 @@ void InventoryPane::update(float dt) {
|
||||
techOverlay->setVisibility(m_player->techOverridden());
|
||||
|
||||
auto healthLabel = fetchChild<LabelWidget>("healthtext");
|
||||
healthLabel->setText(strf("{:.2f}", m_player->maxHealth()));
|
||||
healthLabel->setText(strf("{:.1f}", m_player->maxHealth()));
|
||||
auto energyLabel = fetchChild<LabelWidget>("energytext");
|
||||
energyLabel->setText(strf("{:.2f}", m_player->maxEnergy()));
|
||||
energyLabel->setText(strf("{:.1f}", m_player->maxEnergy()));
|
||||
auto weaponLabel = fetchChild<LabelWidget>("weapontext");
|
||||
weaponLabel->setText(strf("{:.2f}%", m_player->powerMultiplier() * 100));
|
||||
weaponLabel->setText(strf("{:.1f}%", m_player->powerMultiplier() * 100));
|
||||
auto defenseLabel = fetchChild<LabelWidget>("defensetext");
|
||||
if (m_player->protection() == 0)
|
||||
defenseLabel->setText("--");
|
||||
else
|
||||
defenseLabel->setText(strf("{:.2f}", m_player->protection()));
|
||||
defenseLabel->setText(strf("{:.1f}", m_player->protection()));
|
||||
|
||||
auto moneyLabel = fetchChild<LabelWidget>("lblMoney");
|
||||
moneyLabel->setText(toString(m_player->currency("money")));
|
||||
@ -406,14 +406,14 @@ void InventoryPane::update(float dt) {
|
||||
|
||||
auto attackLabel = fetchChild<LabelWidget>("companionAttackStat");
|
||||
if (auto attack = pet->stat("attack")) {
|
||||
attackLabel->setText(strf("{:.2f}", *attack));
|
||||
attackLabel->setText(strf("{:.1f}", *attack));
|
||||
} else {
|
||||
attackLabel->setText("");
|
||||
}
|
||||
|
||||
auto defenseLabel = fetchChild<LabelWidget>("companionDefenseStat");
|
||||
if (auto defense = pet->stat("defense")) {
|
||||
defenseLabel->setText(strf("{:.2f}", *defense));
|
||||
defenseLabel->setText(strf("{:.1f}", *defense));
|
||||
} else {
|
||||
defenseLabel->setText("");
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ void ItemTooltipBuilder::describePersistentEffect(
|
||||
auto listItem = container->addItem();
|
||||
listItem->fetchChild<ImageWidget>("statusImage")
|
||||
->setImage(statsConfig.get(baseMultiplier->statName).getString("icon"));
|
||||
listItem->setLabel("statusLabel", strf("{:.2f}%", (baseMultiplier->baseMultiplier - 1) * 100));
|
||||
listItem->setLabel("statusLabel", strf("{:.1f}%", (baseMultiplier->baseMultiplier - 1) * 100));
|
||||
}
|
||||
} else if (auto valueModifier = modifierEffect->ptr<StatValueModifier>()) {
|
||||
if (statsConfig.contains(valueModifier->statName)) {
|
||||
@ -212,7 +212,7 @@ void ItemTooltipBuilder::describePersistentEffect(
|
||||
auto listItem = container->addItem();
|
||||
listItem->fetchChild<ImageWidget>("statusImage")
|
||||
->setImage(statsConfig.get(effectiveMultiplier->statName).getString("icon"));
|
||||
listItem->setLabel("statusLabel", strf("{:.2f}%", (effectiveMultiplier->effectiveMultiplier - 1) * 100));
|
||||
listItem->setLabel("statusLabel", strf("{:.1f}%", (effectiveMultiplier->effectiveMultiplier - 1) * 100));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user