Skip to content

Commit

Permalink
feat(threat sheet): added system data to context var for use inside t…
Browse files Browse the repository at this point in the history
…he threat sheet template
  • Loading branch information
SouOWendel committed Apr 6, 2024
1 parent 4710b23 commit 1b570cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions module/sheets/threat-sheet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ export class OrdemThreatSheet extends ActorSheet {
// editable, the items array, and the effects array.
const context = super.getData();

const actorData = context.data;

// Add the actor's data to context.data for easier access, as well as flags.
context.system = actorData.system;
context.flags = actorData.flags;

// Add roll data for TinyMCE editors.
context.rollData = context.actor.getRollData();

Expand Down

0 comments on commit 1b570cb

Please sign in to comment.