diff --git a/lang/en.json b/lang/en.json index bdd91cd5..82129bac 100755 --- a/lang/en.json +++ b/lang/en.json @@ -615,7 +615,7 @@ "rerollDice": "Reroll Dice" }, "RiskItAllDialog": { - "title": "{name} - Risk It All - Clear Stress and/or Hit Points", + "title": "Character: {name} - Risk It All - Clear Stress and/or Hit Points", "subtitle": "Clear {hope} Stress and/or Hit Points", "submit": "Submit" }, diff --git a/module/applications/dialogs/riskItAllDialog.mjs b/module/applications/dialogs/riskItAllDialog.mjs index bbde1279..fef76e66 100644 --- a/module/applications/dialogs/riskItAllDialog.mjs +++ b/module/applications/dialogs/riskItAllDialog.mjs @@ -9,7 +9,7 @@ export default class RiskItAllDialog extends HandlebarsApplicationMixin(Applicat } get title() { - return game.i18n.format('DAGGERHEART.APPLICATIONS.RiskItAllDialog.title', { actor: this.actor.name }); + return game.i18n.format('DAGGERHEART.APPLICATIONS.RiskItAllDialog.title', { name: this.actor.name }); } static DEFAULT_OPTIONS = { @@ -35,6 +35,9 @@ export default class RiskItAllDialog extends HandlebarsApplicationMixin(Applicat context.currentHitPointsLabel = "Current Marked Hit Points: " + this.actor.system.resources.hitPoints.value; context.currentStressLabel = "Current Marked Stress: " + this.actor.system.resources.stress.value; + context.newHitPoints = this.actor.system.resources.hitPoints.value; + context.newStress = this.actor.system.resources.stress.value; + return context; } diff --git a/templates/dialogs/riskItAllDialog.hbs b/templates/dialogs/riskItAllDialog.hbs index 09bf2f0d..9f494f58 100644 --- a/templates/dialogs/riskItAllDialog.hbs +++ b/templates/dialogs/riskItAllDialog.hbs @@ -6,12 +6,18 @@ Remaining points to use here.