From b9082503fd557c2a672794c9e2317583478da5ab Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 30 Apr 2010 18:27:00 +1200 Subject: [PATCH] write all damage to log --- OpenRA.Game/Actor.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenRA.Game/Actor.cs b/OpenRA.Game/Actor.cs index 2783fcab82..f9124984dc 100755 --- a/OpenRA.Game/Actor.cs +++ b/OpenRA.Game/Actor.cs @@ -172,6 +172,7 @@ namespace OpenRA { if (IsDead) return; /* overkill! don't count extra hits as more kills! */ + var rawDamage = damage; var oldState = GetDamageState(); /* apply the damage modifiers, if we have any. */ @@ -193,6 +194,9 @@ namespace OpenRA if (Health > maxHP) Health = maxHP; + Log.Write("InflictDamage: {0} #{1} -> {2} #{3} raw={4} adj={5} hp={6}", + attacker.Info.Name, attacker.ActorID, Info.Name, ActorID, rawDamage, damage, Health); + var newState = GetDamageState(); foreach (var nd in traits.WithInterface())