Make player stance colours universally respected
This commit is contained in:
committed by
Matthias Mailänder
parent
2f331548e1
commit
5fc36bd45f
@@ -38,7 +38,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
exp.GiveExperience(playerExperience);
|
||||
|
||||
if (self.Owner.IsAlliedWith(self.World.RenderPlayer))
|
||||
self.World.AddFrameEndTask(w => w.Add(new FloatingText(targetActor.CenterPosition, targetOwner.Color, FloatingText.FormatCashTick(donated), 30)));
|
||||
self.World.AddFrameEndTask(w => w.Add(new FloatingText(targetActor.CenterPosition, targetActor.OwnerColor(), FloatingText.FormatCashTick(donated), 30)));
|
||||
|
||||
foreach (var nct in targetActor.TraitsImplementing<INotifyCashTransfer>())
|
||||
nct.OnAcceptingCash(targetActor, self);
|
||||
|
||||
Reference in New Issue
Block a user