Skip to content

Commit

Permalink
[#1407] Swap icon, fix link, adjust comment
Browse files Browse the repository at this point in the history
  • Loading branch information
arbron committed Aug 30, 2024
1 parent 6f51195 commit 4b89f50
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion icons/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The dnd5e system for Foundry Virtual Tabletop includes icon artwork licensed fro
/svg/original-class.svg - "Barbute" by Lorc under CC BY 3.0
/svg/scale-value.svg - "Dice target" by Delapouite under CC BY 3.0
/svg/size.svg - "Body height" by Delapouite under CC BY 3.0
/svg/subclass.svg - "Test tubes" by Lorc under CC BY 3.0
/svg/subclass.svg - "Elf helmet" by Kier Heyl under CC BY 3.0
/svg/trait.svg - "Scroll unfurled" by Lorc under CC BY 3.0
/svg/trait-armor-proficiencies.svg - "Leather armor" by Delapouite under CC BY 3.0
/svg/trait-damage-immunities.svg - "Aura" by Lorc under CC BY 3.0
Expand Down
2 changes: 1 addition & 1 deletion icons/svg/subclass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions module/documents/advancement/subclass.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export default class SubclassAdvancement extends Advancement {
/* Display Methods */
/* -------------------------------------------- */

/** @inheritdoc */
/** @inheritDoc */
summaryforLevel(level, { configMode=false }={}) {
const subclass = this.item.subclass;
if ( configMode || !item ) return "";
return subclass.toAnchor({ classes: ["content-link"] }).outerHTML;
if ( configMode || !subclass ) return "";
return subclass.toAnchor().outerHTML;
}

/* -------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion templates/actors/parts/actor-classes.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
data-action="edit" data-item-id="{{ cls.subclass.id }}">
{{else if ctx.needsSubclass}}
<a class="gold-icon subclass-icon" data-action="findItem" data-item-type="subclass"
data-class-identifier="{{ cls.identifier }}" data-tooltip="DND5E.SubclassAdd"
data-class-identifier="{{ cls.identifier }}" data-tooltip="DND5E.SubclassAdd"
aria-label="{{ localize 'DND5E.SubclassAdd' }}">
<i class="fa-solid fa-circle-plus" inert></i>
</a>
Expand Down

0 comments on commit 4b89f50

Please sign in to comment.