More dialog stuff

This commit is contained in:
Chris Ryan 2026-01-16 21:16:38 +10:00
parent 6ea09551fe
commit 18bea6420c
3 changed files with 14 additions and 5 deletions

View file

@ -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;
}