From fb34e26300165bb0aa2be71d557c32f4e7fb3ac1 Mon Sep 17 00:00:00 2001
From: TheLastScrub <67403321+TheLastScrub@users.noreply.github.com>
Date: Tue, 16 Jul 2024 18:29:54 -0700
Subject: [PATCH] minor tweaks to percentile chat card layout
---
module/roll/roll.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/module/roll/roll.js b/module/roll/roll.js
index 7072fa2..5010322 100644
--- a/module/roll/roll.js
+++ b/module/roll/roll.js
@@ -256,7 +256,7 @@ export class DGPercentileRoll extends DGRoll {
let label = `${game.i18n.localize("DG.Roll.Rolling")} ${
this.localizedKey
- } ${game.i18n.localize("DG.Roll.Target")} ${this.effectiveTarget}%`;
+ }
${game.i18n.localize("DG.Roll.Target")} ${this.effectiveTarget}%`;
// "Inhuman" stat being rolled. See function for details.
if (this.isInhuman) {
label = `${game.i18n.localize("DG.Roll.Rolling")} ${
@@ -284,14 +284,14 @@ export class DGPercentileRoll extends DGRoll {
}
if (this.modifier || isExhausted) {
- label += ` (${this.target}`;
+ label += ` (${this.target}%`;
if (this.modifier) {
- label += ` ${DGUtils.formatStringWithLeadingPlus(this.modifier)}%`;
+ label += `${DGUtils.formatStringWithLeadingPlus(this.modifier)}%`;
}
if (isExhausted) {
- label += ` ${DGUtils.formatStringWithLeadingPlus(
+ label += `${DGUtils.formatStringWithLeadingPlus(
exhaustedCheckPenalty,
)}%`;
}