Suppress 0-cash ticks on CashTricker and GivesCashOnCapture.
This commit is contained in:
@@ -86,7 +86,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
amount = resources.ChangeCash(amount);
|
||||
|
||||
if (info.ShowTicks)
|
||||
if (info.ShowTicks && amount != 0)
|
||||
AddCashTick(self, amount);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
var amount = resources.ChangeCash(info.Amount);
|
||||
|
||||
if (!info.ShowTicks)
|
||||
if (!info.ShowTicks && amount != 0)
|
||||
return;
|
||||
|
||||
self.World.AddFrameEndTask(w => w.Add(
|
||||
|
||||
Reference in New Issue
Block a user