Fixed bug where tile construction time was increased instead of decreased (#4475)

This commit is contained in:
Xander Lenstra 2021-07-11 18:09:17 +02:00 committed by GitHub
parent 4c9e15c0ea
commit 63d98c4692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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%"))