Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPC sheet initiative only showing perception #14173

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading