void KillingBlow(Unit u) { Qbert q = GetStats(u); if (q != null) { q.killingBlows++; } }
void TallyDamage(Unit source, Unit target, int damage) { Qbert q = GetStats(source); Qbert qt = GetStats(target); if (q != null) { q.damageDone += damage; } if (qt != null) { qt.damageSuffered += damage; } }
void TallyFights(Unit source, Unit target) { Qbert q = GetStats(source); Qbert qt = GetStats(target); if (q != null) { q.attack++; } if (qt != null) { qt.defend++; } }