Don't count refunds as income and deduct them from expenses.

This commit is contained in:
darkademic
2025-08-30 17:37:30 +01:00
committed by Gustas Kažukauskas
parent 4823c3365f
commit 3f73e7a1fb
5 changed files with 53 additions and 21 deletions

View File

@@ -100,7 +100,7 @@ namespace OpenRA.Mods.Common.Traits
{
if (!self.IsInWorld || self.IsDead)
{
owner.PlayerActor.Trait<PlayerResources>().GiveCash(refundableValue);
owner.PlayerActor.Trait<PlayerResources>().RefundCash(refundableValue);
return;
}
@@ -119,7 +119,7 @@ namespace OpenRA.Mods.Common.Traits
{
if (!self.IsInWorld || self.IsDead)
{
owner.PlayerActor.Trait<PlayerResources>().GiveCash(refundableValue);
owner.PlayerActor.Trait<PlayerResources>().RefundCash(refundableValue);
return;
}