Skip to content

Commit

Permalink
Adding debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Aug 4, 2023
1 parent e81d829 commit 1f03c8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const style = {
dropShadow: true,
strokeThickness: 5,
}
console.log({colors})

function extractTerm(term, flavor = '') {
if (term.class === "NumericTerm") {
Expand Down Expand Up @@ -128,6 +129,7 @@ function getTargetList(msg) {
}

Hooks.on("createChatMessage", async function (msg, status, id) {
console.log({msg})
if (msg?.flags?.pf2e?.context?.type !== 'damage-roll') return;
const dmg_list = extractDamageInfoCombined(msg.rolls);
const targets = getTargetList(msg);
Expand Down

0 comments on commit 1f03c8e

Please sign in to comment.