From ef719d4892b95d30e92026f4522a9844d2a9a09f Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 25 Dec 2025 16:37:29 -0700 Subject: [PATCH] Make the fate path editable from the geist sheet --- module/Apps/ActorSheets/BookGeistSheet.mjs | 2 ++ templates/Apps/BookGeistSheet/stats.hbs | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/module/Apps/ActorSheets/BookGeistSheet.mjs b/module/Apps/ActorSheets/BookGeistSheet.mjs index 14fa742..58010e2 100644 --- a/module/Apps/ActorSheets/BookGeistSheet.mjs +++ b/module/Apps/ActorSheets/BookGeistSheet.mjs @@ -113,6 +113,8 @@ export class BookGeistSheet extends const system = this.actor.system; const fate = system.fate; + ctx.fateOptions = Object.values(gameTerms.FatePath) + .map(value => ({ value, label: `RipCrypt.common.ordinals.${value}.abbv` })); if (fate) { ctx.path = { full: localizer(`RipCrypt.common.ordinals.${fate}.full`), diff --git a/templates/Apps/BookGeistSheet/stats.hbs b/templates/Apps/BookGeistSheet/stats.hbs index 2316aad..c6dad15 100644 --- a/templates/Apps/BookGeistSheet/stats.hbs +++ b/templates/Apps/BookGeistSheet/stats.hbs @@ -17,7 +17,16 @@ class="alt" data-tooltip="{{path.full}}" > - {{path.abbv}} + {{#if meta.editable}} + + {{else if meta.limited}} + ??? + {{else}} + {{path.abbv}} + {{/if}} {{#if meta.editable}}