From ae65b5750fd1174089f7eb94837a94538356f659 Mon Sep 17 00:00:00 2001 From: walcutt Date: Fri, 23 May 2025 12:40:40 -0400 Subject: [PATCH] Remove heat --- module/data-models.mjs | 8 ---- module/helpers/update-helper.mjs | 12 ++++- module/sheets/hench-actor-sheet.mjs | 1 - templates/actors/boss.hbs | 70 ----------------------------- 4 files changed, 11 insertions(+), 80 deletions(-) diff --git a/module/data-models.mjs b/module/data-models.mjs index 1f2c630..7e90215 100644 --- a/module/data-models.mjs +++ b/module/data-models.mjs @@ -123,8 +123,6 @@ export class BossDataModel extends foundry.abstract.TypeDataModel { details: cappedArrayField(promptField(), 4), storyline: new StringField({ required: true, blank: false, initial: nullStorylineKey, options: storylineKeys}), - heat: new NumberField({ required: true, integer: true, min: 0, initial: 0, max: 18}), - experienceTriggers: cappedArrayField(markableField(), 4), experience: new NumberField({ required: true, integer: true, min: 0, initial: 0, max: 5 }), @@ -144,10 +142,4 @@ export class BossDataModel extends foundry.abstract.TypeDataModel { return this.updateSource(initMutation); } - - get tier() { - const divisor = 18 / 3; - - return Math.ceil(this.heat / divisor); - } } \ No newline at end of file diff --git a/module/helpers/update-helper.mjs b/module/helpers/update-helper.mjs index ce0edaf..9eab12c 100644 --- a/module/helpers/update-helper.mjs +++ b/module/helpers/update-helper.mjs @@ -4,15 +4,17 @@ export const versions = { UNDEFINED: undefined, DRAFT_0: '0', DRAFT_1: '1', + DRAFT_2: '2', }; -export const CURRENT_VERSION = versions.DRAFT_1; +export const CURRENT_VERSION = versions.DRAFT_2; const updateMap = { [versions.UNDEFINED]: versions.DRAFT_0, [versions.EMPTY]: versions.DRAFT_0, [versions.NULL]: versions.DRAFT_0, [versions.DRAFT_0]: versions.DRAFT_1, + [versions.DRAFT_1]: versions.DRAFT_2, }; const updateWarnings = { @@ -24,6 +26,14 @@ const updateWarnings = {
  • You delete and recreate your deck, or update the Ace of Diamonds and add a joker.
  • `, }, + [versions.DRAFT_2]: { + title: `Draft 2 update!`, + content: `The module is now compatible with Draft 2. Due to these changes, we recommend: + + `, + } }; function getWarningsSinceVersion(oldVersion) { diff --git a/module/sheets/hench-actor-sheet.mjs b/module/sheets/hench-actor-sheet.mjs index 0032c10..2455530 100644 --- a/module/sheets/hench-actor-sheet.mjs +++ b/module/sheets/hench-actor-sheet.mjs @@ -19,7 +19,6 @@ export class HenchActorSheet extends ActorSheet { // TODO define system constants for these context.maxStress = 8; context.maxExp = 5; - context.maxHeat = 18; context.minGear = 3; context.maxGear = 5; diff --git a/templates/actors/boss.hbs b/templates/actors/boss.hbs index 629ce38..355415f 100644 --- a/templates/actors/boss.hbs +++ b/templates/actors/boss.hbs @@ -54,76 +54,6 @@ {{/each}} - -
    -
    -
    -
    - Heat -
    -
    - -
    -
    -
    -
    - Tier I -
    -
    -
    -
    - (Nuisance, low-stakes, local cops) -
    -
    -
    - {{#partialint2checkbox maxHeat actor.system.heat 0 6}} - - {{/partialint2checkbox}} -
    -
    -
    - -
    -
    -
    -
    - Tier II -
    -
    -
    -
    - (Full-time, classic stakes, local super) -
    -
    -
    - {{#partialint2checkbox maxHeat actor.system.heat 6 12}} - - {{/partialint2checkbox}} -
    -
    -
    - -
    -
    -
    -
    - Tier III -
    -
    -
    -
    - (Top-class, high-stakes, world's finest heroes) -
    -
    -
    - {{#partialint2checkbox maxHeat actor.system.heat 12 18}} - - {{/partialint2checkbox}} -
    -
    -
    -
    -