Skip to content

Commit

Permalink
overrideByName causes legend to omit shields #1165
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua authored and Joshua committed Dec 16, 2024
1 parent 72f4b88 commit 63ad541
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/legend_control.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,12 @@ export default class LegendControl {
shieldDef.overrideByName[image.name].spriteBlank;
}
} else if (!networkImages.ref && image.ref) {
// Store the numbered variant of a shield if required by the shield
// definition.
networkImages.ref = image.imageName;
} else if (!networkImages.noRef && !image.ref) {
// Store the unnumbered variant of a shield if required by the shield
// definition.
networkImages.noRef = image.imageName;
}

Expand Down

0 comments on commit 63ad541

Please sign in to comment.