Skip to content

Commit

Permalink
Added placehold crit modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Mar 26, 2024
1 parent b385d5c commit e506257
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/helpers/animation/crit-animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,12 @@ export function personaCrit(token, users, imgData) {
[-0.1 * screenWidth, 0.73 * screenHeight],
];
const centeredPoints = polygonPoints.map(([x, y]) => [x - screenWidth / 2, y - screenHeight / 2]);
const { personaImg, critScale, critOffsetX, critOffsetY, critRotation } = token.flags?.["pf2e-rpg-numbers"] || {};
const { personaImg, critScale, critOffsetX, critOffsetY, critRotation } = token.flags?.["pf2e-rpg-numbers"] || {
critScale: 100,
critOffsetX: 0,
critOffsetY: 0,
critRotation: 0,
};

const imageUrl = personaImg || imgData.img;
const imageScaler = personaImg ? (imgData.scaleX + imgData.yScale) / 2 : 1;
Expand Down

0 comments on commit e506257

Please sign in to comment.