Resolved #1405 - upgrading Spearman to Landsknecht no longer gives you gold
This commit is contained in:
parent
650ac66ff6
commit
7a9fd14b13
2 changed files with 2 additions and 0 deletions
|
@ -326,6 +326,7 @@ class CityInfo {
|
|||
}
|
||||
|
||||
isPuppet=false
|
||||
cityConstructions.inProgressConstructions.clear() // undo all progress of the previous civ on units etc.
|
||||
cityStats.update()
|
||||
UncivGame.Current.worldScreen.shouldUpdate=true
|
||||
}
|
||||
|
|
|
@ -238,6 +238,7 @@ class MapUnit {
|
|||
goldCostOfUpgrade = (goldCostOfUpgrade * 0.66f).toInt()
|
||||
if(civInfo.containsBuildingUnique("Gold cost of upgrading military units reduced by 33%"))
|
||||
goldCostOfUpgrade = (goldCostOfUpgrade * 0.66f).toInt()
|
||||
if(goldCostOfUpgrade<0) return 0 // For instance, Landsknecht costs less than Spearman, so upgrading would cost negative gold
|
||||
return goldCostOfUpgrade
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue