Skip to content

HeroSummary beta ​

Interface of @v12-engine/engine

ts
export interface HeroSummary

A hero of the player, for the row of portraits. Fallen ones are in here too

Members ​

alive ​

ts
alive: boolean;

Whether the hero is alive; a fallen one is in the row all the same

health ​

ts
health: number;

0..1

id ​

ts
id: number;

The hero's entity id

level ​

ts
level: number;

The hero's level

mana ​

ts
mana: number;

The hero's mana now

points ​

ts
points: number;

Skill points the hero has not spent

respawnIn ​

ts
respawnIn?: number;

Seconds until it comes back by itself, while it waits to (respawnPack)

reviveCost ​

ts
reviveCost?: Cost;

What bringing it back would cost

reviving ​

ts
reviving?: number;

0..1 while being brought back: at an altar, or coming back by itself (respawnPack)

type ​

ts
type: string;

The hero's unit type id