This commit is contained in:
Chris Forbes
2009-11-09 21:19:37 +13:00
parent 0e1e62eacc
commit 49f48bef6a
4 changed files with 42 additions and 6 deletions

View File

@@ -111,10 +111,7 @@ namespace OpenRa.Game
Game.PlaySound("unitlst1.aud", false);
if (traits.Contains<Building>())
{
Game.PlaySound("kaboom22.aud", false);
// todo: spawn explosion sprites
}
}
var halfStrength = unitInfo.Strength * Rules.General.ConditionYellow;
@@ -124,6 +121,9 @@ namespace OpenRa.Game
foreach (var nd in traits.WithInterface<INotifyDamage>())
nd.Damaged(this, DamageState.Half);
}
foreach (var ndx in traits.WithInterface<INotifyDamageEx>())
ndx.Damaged(this, damage);
}
}
}