From 3c4bd2cb94458ac49b9298e62c738b930b021bc0 Mon Sep 17 00:00:00 2001 From: Mikolaj Tomczynski Date: Sat, 16 May 2026 15:54:20 +0100 Subject: [PATCH] fix: don't hide FP tracker when using CI (#2711) --- src/module/actor/sheets/gcs-actor-sheet.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/module/actor/sheets/gcs-actor-sheet.ts b/src/module/actor/sheets/gcs-actor-sheet.ts index 1c471471f..c5a12f3df 100644 --- a/src/module/actor/sheets/gcs-actor-sheet.ts +++ b/src/module/actor/sheets/gcs-actor-sheet.ts @@ -385,11 +385,20 @@ class GurpsActorGcsSheet extends GurpsBaseActorSheet< protected _preparePools(): PoolEntry[] { const pools: PoolEntry[] = [] + const systemSource = this.actor.system._source const useConditionalInjury = getGame().settings.get('gurps', 'useConditionalInjury') if (useConditionalInjury) pools.push(...this._prepareConditionalInjuryPools()) - else pools.push(...this._prepareDefaultPools()) + else { + const hpThresholds = HitPoints.getThresholds(systemSource.HP.max).reverse() + + pools.push(this.#prepareAttributePool('HP', hpThresholds)) + } + + const fpThresholds = Fatigue.getThresholds(systemSource.FP.max).reverse() + + pools.push(this.#prepareAttributePool('FP', fpThresholds)) const useQuintessence = getGame().settings.get('gurps', 'use-quintessence') @@ -435,15 +444,6 @@ class GurpsActorGcsSheet extends GurpsBaseActorSheet< /* ---------------------------------------- */ - protected _prepareDefaultPools(): PoolEntry[] { - const systemSource = this.actor.system._source - - const hpThresholds = HitPoints.getThresholds(systemSource.HP.max).reverse() - const fpThresholds = Fatigue.getThresholds(systemSource.FP.max).reverse() - - return [this.#prepareAttributePool('HP', hpThresholds), this.#prepareAttributePool('FP', fpThresholds)] - } - #prepareAttributePool(key: 'HP' | 'FP' | 'QP', thresholds: ThresholdDescriptor[]): PoolEntry { const systemFields = this.actor.system.schema.fields const systemSource = this.actor.system._source