Ottoman unique is back to how it should be in Vanilla - @lishaoxia1985 don't slip gameplay changes into a UI commit please.
This commit is contained in:
parent
cb0599b9f5
commit
265e6416f9
2 changed files with 3 additions and 3 deletions
|
@ -366,7 +366,7 @@
|
|||
"outerColor": [245,248,185],
|
||||
"innerColor": [18,84,30],
|
||||
"uniqueName": "Barbary Corsairs",
|
||||
"uniques": ["Pay only one third the usual cost for naval unit maintenance", "Melee naval units can capture defeated naval units and earn 25 Gold"],
|
||||
"uniques": ["Pay only one third the usual cost for naval unit maintenance", "50% chance of capturing defeated Barbarian naval units and earning 25 Gold"],
|
||||
"cities": ["Istanbul","Edirne","Ankara","Bursa","Konya","Samsun","Gaziantep","Diyabakir","Izmir","Kayseri","Malatya",
|
||||
"Marsin","Antalya","Zonguldak","Denizli","Ordu","Mugia","Eskishehir","Inebolu","Sinop","Adana","Artuin",
|
||||
"Bodrum","Eregli","Silifke","Sivas","Amasya","Marmaris","Trabzon","Erzurum","Urfa","Izmit","Afyonkarhisar",
|
||||
|
|
|
@ -165,8 +165,8 @@ object Battle {
|
|||
// Similarly, Ottoman unique
|
||||
if (defender.isDefeated() && defender.getUnitType().isWaterUnit() && defender.getCivInfo().isBarbarian()
|
||||
&& attacker.isMelee() && attacker.getUnitType().isWaterUnit()
|
||||
&& attacker.getCivInfo().hasUnique("Melee naval units can capture defeated naval units and earn 25 Gold")
|
||||
&& Random().nextDouble() > 0.4 * attacker.getAttackingStrength() / defender.getDefendingStrength() + 0.1f) {
|
||||
&& attacker.getCivInfo().hasUnique("50% chance of capturing defeated Barbarian naval units and earning 25 Gold")
|
||||
&& Random().nextDouble() > 0.5) {
|
||||
attacker.getCivInfo().placeUnitNearTile(attackedTile.position, defender.getName())
|
||||
attacker.getCivInfo().gold += 25
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue