Skip to content

Commit

Permalink
[foundryvtt#1403] Add ability score imporvement to class summary jour…
Browse files Browse the repository at this point in the history
…nal pages
  • Loading branch information
arbron committed Feb 7, 2023
1 parent eda9114 commit 9fec9e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/applications/journal/class-sheet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ export default class JournalClassPageSheet extends JournalPageSheet {
const features = [];
for ( const advancement of item.advancement.byLevel[level] ) {
switch ( advancement.constructor.typeName ) {
case "AbilityScoreImprovement":
features.push(game.i18n.localize("DND5E.AdvancementAbilityScoreImprovementTitle"));
continue;
case "ItemGrant":
if ( advancement.configuration.optional ) continue;
features.push(...await Promise.all(advancement.configuration.items.map(makeLink)));
Expand Down

0 comments on commit 9fec9e6

Please sign in to comment.