Table of Contents

Class CombatStatsTracker

Namespace
GrindFest
Assembly
GrindFest.dll

Tracks combat events during a balance probe and produces structured output comparable across runs. Subscribe to hero + monster GetHit events (firing AFTER damage calculation, so counters are accurate).

Output format: Hits:N Crits:N Blocks:N DmgOut:N DmgIn:N MBlocks:N

public class CombatStatsTracker
Inheritance
object
CombatStatsTracker

Fields

HeroBlocks
HeroCritsDealt
HeroDamageAbsorbed
HeroDurabilityBreaks
HeroDurabilitySpent
HeroHitsDealt
HeroHitsTaken
HeroTotalDamageDealt
HeroTotalDamageTaken
MonsterBlocks
MonsterDamageAbsorbed
MonsterDurabilityBreaks
MonsterDurabilitySpent
MonsterHitsTaken

Methods

Dump()
DumpDurability(float)

Durability side of the report, or an empty string when neither side spent any. Kept out of Dump() so the long-standing COMBAT line stays byte-identical for anything that greps it.

TrackHero(CombatBehaviour)
TrackMonster(CombatBehaviour)