Deprecations

This commit is contained in:
Yair Morgenstern
2021-07-14 22:51:33 +03:00
parent 6b73a3e9d7
commit e3e08732db
2 changed files with 0 additions and 8 deletions

View File

@ -468,9 +468,6 @@ object Battle {
val strength = when {
(attacker.unit.hasUnique("Nuclear weapon of Strength []")) ->
attacker.unit.getMatchingUniques("Nuclear weapon of Strength []").first().params[0].toInt()
// Deprecated since 3.15.3
(attacker.unit.hasUnique("Nuclear weapon")) -> 1
//
else -> return
}

View File

@ -342,11 +342,6 @@ class CityStats {
if (cityInfo.civInfo.getHappiness() >= 0) {
for (unique in uniques.filter { it.placeholderText == "[]% [] while the empire is happy"})
stats.add(Stat.valueOf(unique.params[1]), unique.params[0].toFloat())
// Deprecated since 3.15.0
for (unique in uniques.filter { it.placeholderText == "+15% science while the empire is happy"})
stats.science += 15f
//
}
return stats