Skip to content

Commit

Permalink
fixed font scaling to start at 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Aug 7, 2023
1 parent 7216c08 commit d2c33a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function extractDamageInfoCombined(rolls) {
}

export function getFontScale(scaleType, dmg, tok) {
let scale = game.settings.get("pf2e-rpg-numbers", 'max-font-scale');
let scale = game.settings.get("pf2e-rpg-numbers", 'max-font-scale') - 1;
if (scaleType === "percentMaxHealth") {
scale *= (dmg / (tok.actor.system.attributes.hp.max + tok.actor.system.attributes.hp.temp));
}
Expand All @@ -116,5 +116,5 @@ export function getFontScale(scaleType, dmg, tok) {
if (scaleType === "none") {
return 1;
}
return scale;
return scale + 1;
}

0 comments on commit d2c33a0

Please sign in to comment.