Skip to content

Commit

Permalink
Fix NPC sheet initiative only showing perception (#14173)
Browse files Browse the repository at this point in the history
  • Loading branch information
In3luki committed Mar 11, 2024
1 parent 28f26d3 commit 930b4a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/module/actor/npc/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ interface NPCSystemSheetData extends NPCSystemData {
localizedName?: string;
};
};
sortedSkills: Record<SkillAbbreviation, NPCSkillSheetData>;
saves: Record<SaveType, NPCSaveData & WithAdjustments & WithRank & { labelShort?: string }>;
skills: Record<SkillAbbreviation, NPCSkillSheetData>;
}
Expand Down
2 changes: 1 addition & 1 deletion static/templates/actors/npc/partials/sidebar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
<select name="system.initiative.statistic">
{{#select data.initiative.statistic}}
<option value="perception">{{localize "PF2E.PerceptionLabel"}}</option>
{{#each data.sortedSkills as |skill|}}
{{#each data.skills as |skill|}}
<option value="{{skill.slug}}">{{skill.label}}</option>
{{/each}}
{{/select}}
Expand Down
2 changes: 1 addition & 1 deletion static/templates/actors/npc/simple-sheet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
</header>
<div class="side-bar-section-body">
<div class="list">
{{#each data.sortedSkills as |skill|}}
{{#each data.skills as |skill|}}
{{#if skill.visible}}
<div class="skill-entry tag-legacy" data-statistic="{{skill.slug}}">
<a class="roll" data-action="roll-check">
Expand Down

0 comments on commit 930b4a6

Please sign in to comment.