Skip to content

Commit

Permalink
issue #30 add health bar
Browse files Browse the repository at this point in the history
  • Loading branch information
itteerde committed Apr 12, 2024
1 parent da40b90 commit 3337be8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ep2e-tr/scripts/ep2e-tr.js
Original file line number Diff line number Diff line change
Expand Up @@ -1095,4 +1095,8 @@ Hooks.on("ready", function () {

});

Hooks.on("updateActor", async function (actor, system, diff, id) {
await actor.update({ "system.hp": { max: actor.system.health.physical.max, value: actor.system.health.physical.max - actor.system.health.physical.value } });
});

console.log(`Tablerules has been loaded (${performance.now() - start_time}ms).`);

0 comments on commit 3337be8

Please sign in to comment.