Add RepairSound to EngineerRepair.

This commit is contained in:
Mustafa Alperen Seki
2019-04-13 20:30:25 +03:00
committed by reaperrr
parent 0f9a157943
commit e63f52c43f
2 changed files with 5 additions and 0 deletions

View File

@@ -63,6 +63,8 @@ namespace OpenRA.Mods.Common.Activities
return;
enterActor.InflictDamage(self, new Damage(-enterHealth.MaxHP));
if (!string.IsNullOrEmpty(info.RepairSound))
Game.Sound.Play(SoundType.World, info.RepairSound, enterActor.CenterPosition);
if (info.EnterBehaviour == EnterBehaviour.Dispose)
self.Dispose();