This commit is contained in:
Yair Morgenstern
2021-01-02 22:09:08 +02:00
parent 65cc56b5d7
commit ae805284a6
4 changed files with 30 additions and 16 deletions

View File

@ -3,8 +3,8 @@ package com.unciv.build
object BuildConfig { object BuildConfig {
const val kotlinVersion = "1.3.71" const val kotlinVersion = "1.3.71"
const val appName = "Unciv" const val appName = "Unciv"
const val appCodeNumber = 516 const val appCodeNumber = 517
const val appVersion = "3.12.5" const val appVersion = "3.12.6"
const val gdxVersion = "1.9.12" const val gdxVersion = "1.9.12"
const val roboVMVersion = "2.3.1" const val roboVMVersion = "2.3.1"

View File

@ -1,3 +1,26 @@
## 3.12.6
Resolved #3483 - settlers require at least 2 population to construct, as per Civ V
Set a max cap on unit maintenance - does not increase past the base turn limit
Resolved #3472 - can purchase 'free' tiles in cities even with negative gold
Resolved #3490 - fixed formatting problem in trade popup
Resolved #3489 - City state influence is affected by war/peace with their enemies
Resolved #3475 - capturing settlers moves us to the captured units' tile
Better visual aircraft indicators
Solved ANRs when loading big maps in editor screen
By 9kgsofrice:
- Modded buildings never lead cities to negative production
- "happiness from garrison" effect was duplicated
## 3.12.5 ## 3.12.5
Resolved #3470 - popups now make the rest of the screen unclickable to avoid exploits Resolved #3470 - popups now make the rest of the screen unclickable to avoid exploits

View File

@ -248,17 +248,6 @@ class CityStats {
return !cityInfo.containsBuildingUnique("Remove extra unhappiness from annexed cities") return !cityInfo.containsBuildingUnique("Remove extra unhappiness from annexed cities")
} }
fun getStatsOfSpecialist(stat: Stat): Stats {
val stats = Stats()
if (stat == Stat.Culture || stat == Stat.Science) stats.add(stat, 3f)
else stats.add(stat, 2f) // science and gold specialists
for (unique in cityInfo.civInfo.getMatchingUniques("[] from every specialist"))
stats.add(unique.stats)
return stats
}
fun getStatsOfSpecialist(specialistName: String): Stats { fun getStatsOfSpecialist(specialistName: String): Stats {
val specialist = cityInfo.getRuleset().specialists[specialistName] val specialist = cityInfo.getRuleset().specialists[specialistName]
if (specialist == null) return Stats() if (specialist == null) return Stats()

View File

@ -155,9 +155,11 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre
buttonText, buttonText,
building.getRejectionReason(cityConstructions) building.getRejectionReason(cityConstructions)
) )
if (building.isWonder) buildableWonders += productionTextButton when {
else if (building.isNationalWonder) buildableNationalWonders += productionTextButton building.isWonder -> buildableWonders += productionTextButton
else buildableBuildings += productionTextButton building.isNationalWonder -> buildableNationalWonders += productionTextButton
else -> buildableBuildings += productionTextButton
}
} }
for (specialConstruction in PerpetualConstruction.perpetualConstructionsMap.values for (specialConstruction in PerpetualConstruction.perpetualConstructionsMap.values