Skip to content

Commit

Permalink
[#2108] Fix issue with localized ability abbreviations causing issues…
Browse files Browse the repository at this point in the history
… with skills
  • Loading branch information
arbron authored and Fyorl committed Jan 25, 2023
1 parent 6f770d1 commit 1da8018
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion module/applications/actor/base-sheet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default class ActorSheet5e extends ActorSheet {

// Skills
for ( const [s, skl] of Object.entries(context.skills) ) {
skl.ability = CONFIG.DND5E.abilityAbbreviations[skl.ability];
skl.abbreviation = CONFIG.DND5E.abilityAbbreviations[skl.ability];
skl.icon = this._getProficiencyIcon(skl.value);
skl.hover = CONFIG.DND5E.proficiencyLevels[skl.value];
skl.label = CONFIG.DND5E.skills[s]?.label;
Expand Down
2 changes: 1 addition & 1 deletion templates/actors/character-sheet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
<i class="fas fa-cog"></i>
</a>
</div>
<span class="skill-ability">{{skill.ability}}</span>
<span class="skill-ability">{{skill.abbreviation}}</span>
<span class="skill-mod" data-tooltip="{{localize 'DND5E.SkillModifierHint' skill=skill.label}}">
{{numberFormat skill.total decimals=0 sign=true}}
</span>
Expand Down
2 changes: 1 addition & 1 deletion templates/actors/npc-sheet.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<i class="fas fa-cog"></i>
</a>
</div>
<span class="skill-ability">{{skill.ability}}</span>
<span class="skill-ability">{{skill.abbreviation}}</span>
<span class="skill-mod" data-tooltip="{{localize 'DND5E.SkillModifierHint' skill=skill.label}}">
{{numberFormat skill.total decimals=0 sign=true}}
</span>
Expand Down

0 comments on commit 1da8018

Please sign in to comment.