From dc3c94fc52eb16199679fb65da94b045f2d76184 Mon Sep 17 00:00:00 2001 From: TheLastScrub <67403321+TheLastScrub@users.noreply.github.com> Date: Sun, 16 Feb 2025 18:30:42 -0800 Subject: [PATCH] lost type skill check boxes --- module/actor/actor-sheet.js | 3 ++- templates/actor/partials/custom-skills-partial.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/actor/actor-sheet.js b/module/actor/actor-sheet.js index a6d4694..cad0e04 100644 --- a/module/actor/actor-sheet.js +++ b/module/actor/actor-sheet.js @@ -157,8 +157,8 @@ export default class DeltaGreenActorSheet extends ActorSheet { skill.type = "typeSkill"; skill.key = key; skill.sortLabel = skill.group + "." + skill.label; - skill.sortLabel = skill.sortLabel.toUpperCase(); + skill.actorType = this.actor.type; if (skill.sortLabel === "" || skill.sortLabel === `DG.Skills.${key}`) { skill.sortLabel = skill.label; @@ -172,6 +172,7 @@ export default class DeltaGreenActorSheet extends ActorSheet { training.type = "training"; training.sortLabel = training.name.toUpperCase(); + training.actorType = this.actor.type; sortedCustomSkills.push(training); } diff --git a/templates/actor/partials/custom-skills-partial.html b/templates/actor/partials/custom-skills-partial.html index 1214927..fe2a3fa 100644 --- a/templates/actor/partials/custom-skills-partial.html +++ b/templates/actor/partials/custom-skills-partial.html @@ -21,7 +21,7 @@ - {{#if_eq ../actorType "agent"}} + {{#if_eq skill.actorType "agent"}} {{/if_eq}}