mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 05:41:11 +07:00
Align (reduce) Embarked Defense Strength per Era (#6231)
* Change Embarked Defending Strength per era. Update Tutorial a little * Use JSON implementation of EmbarkDefense Co-authored-by: itanasi <spellman23@gmail.com>
This commit is contained in:
@ -35,7 +35,8 @@ class MapUnitCombatant(val unit: MapUnit) : ICombatant {
|
||||
}
|
||||
|
||||
override fun getDefendingStrength(): Int {
|
||||
return if (unit.isEmbarked() && !isCivilian()) 5 * getCivInfo().getEraNumber()
|
||||
return if (unit.isEmbarked() && !isCivilian())
|
||||
unit.civInfo.getEra().embarkDefense
|
||||
else unit.baseUnit().strength
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,7 @@ class Era : RulesetObject(), IHasUniques {
|
||||
var settlerBuildings = ArrayList<String>()
|
||||
var startingObsoleteWonders = ArrayList<String>()
|
||||
var baseUnitBuyCost = 200
|
||||
var embarkDefense = 3
|
||||
var startPercent = 0
|
||||
|
||||
var friendBonus = HashMap<String, List<String>>()
|
||||
|
Reference in New Issue
Block a user