Update Automation.kt

This commit is contained in:
EmperorPinguin 2025-07-31 22:23:39 +02:00 committed by GitHub
parent 01a4025287
commit e5be79b0e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,7 +84,7 @@ object Automation {
for (unique in localUniqueCache.forCityGetMatchingUniques(city, UniqueType.UnhappinessFromPopulationTypePercentageChange))
if (unique.params[1] == "Specialists" && city.matchesFilter(unique.params[2]))
yieldStats.happiness -= (unique.params[0].toFloat() / 100f) // relative val is negative, make positive
if (yieldStats.science == 3f || yieldStats.science >= 5f )
if (!city.civ.isHuman() && (yieldStats.science == 3f || yieldStats.science >= 5f ))
yieldStats.science *= 2f
}