mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04:00
Update wolfpack bonus, icons.
This commit is contained in:
parent
ed96534d34
commit
19ce158ccb
@ -697,20 +697,6 @@ ImprovementIcons/Quarry
|
|||||||
orig: 100, 100
|
orig: 100, 100
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
ImprovementIcons/Railroad
|
|
||||||
rotate: false
|
|
||||||
xy: 1734, 722
|
|
||||||
size: 100, 100
|
|
||||||
orig: 100, 100
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
OtherIcons/Railroad
|
|
||||||
rotate: false
|
|
||||||
xy: 1734, 722
|
|
||||||
size: 100, 100
|
|
||||||
orig: 100, 100
|
|
||||||
offset: 0, 0
|
|
||||||
index: -1
|
|
||||||
ImprovementIcons/Road
|
ImprovementIcons/Road
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 347, 407
|
xy: 347, 407
|
||||||
@ -788,6 +774,20 @@ OtherIcons/Pentagon
|
|||||||
orig: 100, 100
|
orig: 100, 100
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
|
OtherIcons/Railroad
|
||||||
|
rotate: false
|
||||||
|
xy: 1734, 722
|
||||||
|
size: 100, 100
|
||||||
|
orig: 100, 100
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
ImprovementIcons/Railroad
|
||||||
|
rotate: false
|
||||||
|
xy: 1734, 722
|
||||||
|
size: 100, 100
|
||||||
|
orig: 100, 100
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
OtherIcons/Shield
|
OtherIcons/Shield
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 692, 622
|
xy: 692, 622
|
||||||
@ -2608,3 +2608,24 @@ UnitPromotionIcons/Volley_(Civ5)
|
|||||||
orig: 20, 20
|
orig: 20, 20
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
|
UnitPromotionIcons/Wolfpack_III_(Civ5)
|
||||||
|
rotate: false
|
||||||
|
xy: 380, 5
|
||||||
|
size: 20, 20
|
||||||
|
orig: 20, 20
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
UnitPromotionIcons/Wolfpack_II_(Civ5)
|
||||||
|
rotate: false
|
||||||
|
xy: 402, 27
|
||||||
|
size: 20, 20
|
||||||
|
orig: 20, 20
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
UnitPromotionIcons/Wolfpack_I_(Civ5)
|
||||||
|
rotate: false
|
||||||
|
xy: 1983, 532
|
||||||
|
size: 20, 20
|
||||||
|
orig: 20, 20
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 833 KiB After Width: | Height: | Size: 837 KiB |
@ -105,7 +105,10 @@ class BattleDamage{
|
|||||||
for (ability in attacker.unit.getUniques()) {
|
for (ability in attacker.unit.getUniques()) {
|
||||||
val regexResult = Regex("""Bonus as Attacker (\d*)%""").matchEntire(ability) //to do: extend to defender, and penalyy
|
val regexResult = Regex("""Bonus as Attacker (\d*)%""").matchEntire(ability) //to do: extend to defender, and penalyy
|
||||||
if (regexResult == null) continue
|
if (regexResult == null) continue
|
||||||
modifiers["Attacker Bonus"] = regexResult.groups[1]!!.value.toFloat() / 100
|
val bonus = regexResult.groups[1]!!.value.toFloat() / 100
|
||||||
|
if (modifiers.containsKey("Attacker Bonus"))
|
||||||
|
modifiers["Attacker Bonus"] =modifiers["Attacker Bonus"]!! + bonus
|
||||||
|
else modifiers["Attacker Bonus"] = bonus
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user