From 63ad5416300aa27403a17e23df903db8856a8b70 Mon Sep 17 00:00:00 2001 From: Joshua Date: Mon, 16 Dec 2024 15:40:31 +0530 Subject: [PATCH] overrideByName causes legend to omit shields #1165 --- src/js/legend_control.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/legend_control.js b/src/js/legend_control.js index 11c1bd6bb..53e7a8d1c 100644 --- a/src/js/legend_control.js +++ b/src/js/legend_control.js @@ -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; }