CRaph0705 / Combat-Helper

Little tool for DM to organize dnd combats
1 stars 0 forks source link

isDead property, button (logic in tracker to add) #179

Open CRaph0705 opened 9 months ago

CRaph0705 commented 9 months ago

for each unit, initialize a boolean isDead to false.

function get and set this property isDead

pseudo code : if (this.hp <= 0) { this.hp = 0; this.isDead = false }

button on each unit to set hp to 0 and set boolean isDead to true.