Skip to main content

Module view

Module view 

Source
Expand description

What a player’s device sees of a combat. The party knows each other’s hit points, but monsters’ (and anyone else the DM adds) stay behind the DM’s screen: a player sees only how hurt one looks (Vitality), and not its armor class.

The combat service conceals the snapshot, the log and every event it sends to a player’s device (Concealer). Concealed hit points still go up and down in steps (3 unhurt, 2 hurt, 1 bloodied, 0 down), so a client applies concealed events like any others, and “is it down?” means the same.

Structs§

Concealer
Conceals a combat for a player’s device: its state, then the events that follow it. It remembers who’s behind the screen, so an event about a combatant who has since left is concealed too.

Enums§

Vitality
How hurt a combatant looks, without the numbers.