- summary: The damage one fighter received during the fight, in total and by source.
- area: Game.Fight
The damage one fighter received during the fight, in total and by source.
Kind struct · Area Game.Fight
One block of DetailedStatistics: what the official end-of-fight statistics screen shows for one
fighter. Read the members you need; every value is already final (per-turn and per-AP values
are averages, sent as floats).
The client shows each member under its own localization key:
- total: ui.fightResult.damageTaken
- poison: ui.fightResult.byPoison
- push: ui.fightResult.byPush
- object: ui.fightResult.byObject
- summon: ui.fightResult.bySummon
- shield: ui.fightResult.byShield
- per_turn: ui.fightResult.byTurn
- erosion: ui.fightResult.erosionTaken
The ninth member (an enum, the table's +Types holder) is never shown. Ignore unnamed members.
Not sent on its own — a record carried by DetailedStatistics, never sent on its own. inferred
Used by
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | object | int32 | Damage received from objects (traps, glyphs and the like). The official client shows it under ui.fightResult.byObject. | never |
| 2 | summon | int32 | Damage received from summons. The official client shows it under ui.fightResult.bySummon. | never |
| 3 | shield | int32 | Damage received through shields. The official client shows it under ui.fightResult.byShield. | never |
| 4 | poison | int32 | Damage received from poisons. The official client shows it under ui.fightResult.byPoison. | never |
| 5 | erosion | int32 | Erosion suffered (permanent life lost). The official client shows it under ui.fightResult.erosionTaken. | never |
| 6 | total | int32 | All damage received. The official client shows it under ui.fightResult.damageTaken. | never |
| 7 | per_turn | float | Average damage received per turn. The official client shows it under ui.fightResult.byTurn. | never |
| 9 | push | int32 | Damage received from being pushed into obstacles. The official client shows it under ui.fightResult.byPush. | never |