Plundering no longer gives huge amounts when attacking far weaker units

This commit is contained in:
Yair Morgenstern
2022-02-12 22:01:20 +02:00
parent b62617c4d2
commit 901c8a81a5

View File

@ -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))
}
}