From 38cf71a7abef11f3bec56da9355c7a37175091fa Mon Sep 17 00:00:00 2001 From: SeventhM <127357473+SeventhM@users.noreply.github.com> Date: Thu, 22 Jun 2023 22:52:47 -0700 Subject: [PATCH] Bug fix: Buildings not set to -1 by default correctly (#9635) * Change the default cost of buildings and the default time of tile improvements * Bugfix: default building cost is now set to -1 as intended --- core/src/com/unciv/models/ruleset/Building.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/ruleset/Building.kt b/core/src/com/unciv/models/ruleset/Building.kt index fd24aa0a0d..97abf29242 100644 --- a/core/src/com/unciv/models/ruleset/Building.kt +++ b/core/src/com/unciv/models/ruleset/Building.kt @@ -30,7 +30,7 @@ import kotlin.math.pow class Building : RulesetStatsObject(), INonPerpetualConstruction { override var requiredTech: String? = null - override var cost: Int = 0 + override var cost: Int = -1 var maintenance = 0 private var percentStatBonus: Stats? = null