mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-10 15:59:33 +07:00
Oversight - "base hurry cost" in pedia should be multiple of 10 (#5320)
This commit is contained in:
@ -219,7 +219,7 @@ class Building : RulesetStatsObject(), INonPerpetualConstruction {
|
||||
val stats = mutableListOf("$cost${Fonts.production}")
|
||||
if (canBePurchasedWithStat(null, Stat.Gold)) {
|
||||
// We need what INonPerpetualConstruction.getBaseGoldCost calculates but without any game- or civ-specific modifiers
|
||||
val buyCost = 30.0 * cost.toFloat().pow(0.75f) * hurryCostModifier.toPercent() / 10 * 10
|
||||
val buyCost = (30.0 * cost.toFloat().pow(0.75f) * hurryCostModifier.toPercent()).toInt() / 10 * 10
|
||||
stats += "$buyCost${Fonts.gold}"
|
||||
}
|
||||
textList += FormattedLine(stats.joinToString(", ", "{Cost}: "))
|
||||
|
@ -124,7 +124,7 @@ class BaseUnit : RulesetObject(), INonPerpetualConstruction {
|
||||
stats += "$cost${Fonts.production}"
|
||||
if (canBePurchasedWithStat(null, Stat.Gold)) {
|
||||
// We need what INonPerpetualConstruction.getBaseGoldCost calculates but without any game- or civ-specific modifiers
|
||||
val buyCost = 30.0 * cost.toFloat().pow(0.75f) * hurryCostModifier.toPercent() / 10 * 10
|
||||
val buyCost = (30.0 * cost.toFloat().pow(0.75f) * hurryCostModifier.toPercent()).toInt() / 10 * 10
|
||||
stats += "$buyCost${Fonts.gold}"
|
||||
}
|
||||
textList += FormattedLine(stats.joinToString(", ", "{Cost}: "))
|
||||
|
Reference in New Issue
Block a user