write all damage to log

This commit is contained in:
Chris Forbes
2010-04-30 18:27:00 +12:00
parent 2d0f30a341
commit b9082503fd

View File

@@ -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<INotifyDamage>())