mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Fix "Instantly consumes [amount] [resource]"
This commit is contained in:
parent
36a8b368c8
commit
4d3b2845fd
@ -352,7 +352,7 @@ object UniqueTriggerActivation {
|
|||||||
val resource = ruleSet.tileResources[resourceName] ?: return false
|
val resource = ruleSet.tileResources[resourceName] ?: return false
|
||||||
if (!resource.isStockpiled()) return false
|
if (!resource.isStockpiled()) return false
|
||||||
|
|
||||||
civInfo.resourceStockpiles.add(resourceName, amount)
|
civInfo.resourceStockpiles.add(resourceName, -amount)
|
||||||
|
|
||||||
val notificationText = getNotificationText(notification, triggerNotificationText,
|
val notificationText = getNotificationText(notification, triggerNotificationText,
|
||||||
"You have lost [$amount] [$resourceName]")
|
"You have lost [$amount] [$resourceName]")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user