mirror of
https://github.com/yairm210/Unciv.git
synced 2025-08-03 08:39:37 +07:00
Deprecations
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user