revamp of damage notifs; added Explodes

This commit is contained in:
Chris Forbes
2009-12-19 10:42:35 +13:00
parent 10431a5038
commit 07b5b4c164
16 changed files with 128 additions and 60 deletions

View File

@@ -51,11 +51,12 @@ namespace OpenRa.Game.Traits
roof.PlayThen(prefix + "build-top", () => isOpen = true);
}
public override void Damaged(Actor self, DamageState ds)
public override void Damaged(Actor self, AttackInfo e)
{
base.Damaged(self, ds);
base.Damaged(self, e);
switch (ds)
if (!e.DamageStateChanged) return;
switch (e.DamageState)
{
case DamageState.Normal:
prefix = "";