lost type skill check boxes

This commit is contained in:
TheLastScrub
2025-02-16 18:30:42 -08:00
parent 4b7c0e7dd6
commit dc3c94fc52
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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);
}
@@ -21,7 +21,7 @@
<i class="fas fa-dice"></i>
</label>
<input class="percentile-skill-input" type="text" name="system.typedSkills.{{skill.key}}.proficiency" value="{{skill.proficiency}}" data-dtype="Number"/>
{{#if_eq ../actorType "agent"}}
{{#if_eq skill.actorType "agent"}}
<input class="checkbox-skill-input" type="checkbox" name="system.typedSkills.{{skill.key}}.failure" {{checked skill.failure}} data-dtype="Boolean" {{#if skill.cannotBeImprovedByFailure}} disabled {{/if}} />
{{/if_eq}}
</div>