Skip to content

Commit

Permalink
console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Aug 29, 2022
1 parent 97dc58f commit d6bfb7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions module/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,19 @@ Hooks.on("createChatMessage", async (data) => {
switch (degreeOfSuccess) {
case "criticalSuccess":
item = items.find(i => i.data.name.includes("(Critical Success)"))
console.log("PF2e x JB2A Macros | Playing \"On Hit/Miss\" Critical Success animation")
AutoAnimations.playAnimation(token, targets, item, {playOnMiss: true, hitTargets: targets}); break;
case "criticalFailure":
item = items.find(i => i.data.name.includes("(Critical Failure)"))
console.log("PF2e x JB2A Macros | Playing \"On Hit/Miss\" Critical Failure animation")
AutoAnimations.playAnimation(token, targets, item, {playOnMiss: true, hitTargets: !game.settings.get("pf2e-jb2a-macros", "randomHitAnims") ? targets : []}); break;
case "failure":
item = items.find(i => i.data.name.includes("(Failure)"))
console.log("PF2e x JB2A Macros | Playing \"On Hit/Miss\" Failure animation")
AutoAnimations.playAnimation(token, targets, item, {playOnMiss: true, hitTargets: !game.settings.get("pf2e-jb2a-macros", "randomHitAnims") ? targets : []}); break;
case "success":
item = items.find(i => i.data.name.includes("(Success)"))
console.log("PF2e x JB2A Macros | Playing \"On Hit/Miss\" Success animation")
AutoAnimations.playAnimation(token, targets, item, {playOnMiss: true, hitTargets: targets}); break;
}
}
Expand Down

0 comments on commit d6bfb7c

Please sign in to comment.