mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 21:03:15 -04:00
Plundering no longer gives huge amounts when attacking far weaker units
This commit is contained in:
parent
b62617c4d2
commit
901c8a81a5
@ -265,7 +265,7 @@ object Battle {
|
||||
for (unique in plunderingUnit.unit.getMatchingUniques(UniqueType.DamageUnitsPlunder, checkCivInfoUniques = true)) {
|
||||
if (plunderedUnit.matchesCategory(unique.params[1])) {
|
||||
val percentage = unique.params[0].toFloat()
|
||||
plunderedGoods.add(Stat.valueOf(unique.params[2]), percentage / 100f * damageDealt)
|
||||
plunderedGoods.add(Stat.valueOf(unique.params[2]), percentage / 100f * min(damageDealt,100))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user