Skip to content

BloodEvent beta ​

Interface of @v12-engine/client

ts
export interface BloodEvent

A hit or a death that may draw blood, as the screen is told of it

Members ​

amount ​

ts
amount?: number;

For a hit: how much, of what, whether a weapon dealt it, and who

attack ​

ts
attack?: boolean;

Whether a hit was dealt by an attack, not by a spell or other cause

damageType ​

ts
damageType?: string;

The damage type of a hit, as the rules name it (DamageType)

from ​

ts
from?: {
        x: number;
        z: number;
    };

For a death: where the killer stood, when the player saw it

kind ​

ts
kind: 'hit' | 'death';

Whether the event is a hit or a death

source ​

ts
source?: number;

The id of the entity that dealt the hit