mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 22:37:02 -04:00
Deprecations
This commit is contained in:
parent
6b73a3e9d7
commit
e3e08732db
@ -468,9 +468,6 @@ object Battle {
|
|||||||
val strength = when {
|
val strength = when {
|
||||||
(attacker.unit.hasUnique("Nuclear weapon of Strength []")) ->
|
(attacker.unit.hasUnique("Nuclear weapon of Strength []")) ->
|
||||||
attacker.unit.getMatchingUniques("Nuclear weapon of Strength []").first().params[0].toInt()
|
attacker.unit.getMatchingUniques("Nuclear weapon of Strength []").first().params[0].toInt()
|
||||||
// Deprecated since 3.15.3
|
|
||||||
(attacker.unit.hasUnique("Nuclear weapon")) -> 1
|
|
||||||
//
|
|
||||||
else -> return
|
else -> return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -342,11 +342,6 @@ class CityStats {
|
|||||||
if (cityInfo.civInfo.getHappiness() >= 0) {
|
if (cityInfo.civInfo.getHappiness() >= 0) {
|
||||||
for (unique in uniques.filter { it.placeholderText == "[]% [] while the empire is happy"})
|
for (unique in uniques.filter { it.placeholderText == "[]% [] while the empire is happy"})
|
||||||
stats.add(Stat.valueOf(unique.params[1]), unique.params[0].toFloat())
|
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
|
return stats
|
||||||
|
Loading…
x
Reference in New Issue
Block a user