Add a "structure sold" notification.

This commit is contained in:
Matthias Mailänder
2021-01-12 22:46:03 +01:00
committed by abcdefg30
parent 3b768dacf5
commit 8f06b0a836
5 changed files with 10 additions and 0 deletions

View File

@@ -48,6 +48,8 @@ namespace OpenRA.Mods.Common.Activities
if (showTicks && refund > 0 && self.Owner.IsAlliedWith(self.World.RenderPlayer))
self.World.AddFrameEndTask(w => w.Add(new FloatingText(self.CenterPosition, self.Owner.Color, FloatingText.FormatCashTick(refund), 30)));
Game.Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", sellableInfo.Notification, self.Owner.Faction.InternalName);
self.Dispose();
return false;
}