mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-15 04:14:44 +07:00
Don't notify for "0 stat" plunders
This commit is contained in:
parent
0a357e3598
commit
61c5302d31
@ -22,7 +22,6 @@ import com.unciv.models.ruleset.unique.UniqueType
|
||||
import com.unciv.models.stats.Stat
|
||||
import com.unciv.models.stats.Stats
|
||||
import com.unciv.ui.components.UnitMovementMemoryType
|
||||
import com.unciv.ui.screens.worldscreen.WorldScreen
|
||||
import com.unciv.ui.screens.worldscreen.unit.actions.UnitActionsPillage
|
||||
import com.unciv.utils.debug
|
||||
import kotlin.math.max
|
||||
@ -356,6 +355,7 @@ object Battle {
|
||||
val civ = plunderingUnit.getCivInfo()
|
||||
for ((key, value) in plunderedGoods) {
|
||||
val plunderedAmount = value.toInt()
|
||||
if (plunderedAmount == 0) continue
|
||||
civ.addStat(key, plunderedAmount)
|
||||
civ.addNotification(
|
||||
"Your [${plunderingUnit.getName()}] plundered [${plunderedAmount}] [${key.name}] from [${plunderedUnit.getName()}]",
|
||||
|
Loading…
Reference in New Issue
Block a user