mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Fixed bug where tile construction time was increased instead of decreased (#4475)
This commit is contained in:
parent
4c9e15c0ea
commit
63d98c4692
@ -26,7 +26,7 @@ class TileImprovement : NamedStats(), ICivilopediaText {
|
||||
fun getTurnsToBuild(civInfo: CivilizationInfo): Int {
|
||||
var realTurnsToBuild = turnsToBuild.toFloat() * civInfo.gameInfo.gameParameters.gameSpeed.modifier
|
||||
for (unique in civInfo.getMatchingUniques("[]% tile improvement construction time")) {
|
||||
realTurnsToBuild *= 1 - unique.params[0].toFloat() / 100f
|
||||
realTurnsToBuild *= 1 + unique.params[0].toFloat() / 100f
|
||||
}
|
||||
// Deprecated since 3.14.17
|
||||
if (civInfo.hasUnique("Worker construction increased 25%"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user