From 8906ae1dccf0e0efb721208bb9430633cca84002 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 26 Jan 2022 09:34:49 +0100 Subject: [PATCH] Issue #1016 Always print CASE/CASEII in location header --- src/megameklab/com/printing/PrintMech.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/megameklab/com/printing/PrintMech.java b/src/megameklab/com/printing/PrintMech.java index 65128a6b0..e8e890774 100644 --- a/src/megameklab/com/printing/PrintMech.java +++ b/src/megameklab/com/printing/PrintMech.java @@ -426,8 +426,10 @@ private void writeLocationCriticals(int loc, SVGRectElement svgRect) { double x = viewX + viewWidth * 0.075; x += addTextElement(canvas, x, viewY - 1, mech.getLocationName(loc), fontSize * 1.25f, SVGConstants.SVG_START_VALUE, SVGConstants.SVG_BOLD_VALUE); - if (mech.isClan() && UnitUtil.hasAmmo(mech, loc) && !mech.hasCASEII(loc)) { - addTextElement(canvas, x + fontSize / 2, viewY - 1, "(CASE)", fontSize, + if ((mech.isClan() && UnitUtil.hasAmmo(mech, loc)) + || (!mech.isClan() && (mech.hasCASEII(loc) || mech.locationHasCase(loc)))) { + String text = "(CASE" + (mech.hasCASEII(loc) ? " II)" : ")"); + addTextElement(canvas, x + fontSize / 2, viewY - 1, text, fontSize, SVGConstants.SVG_START_VALUE, SVGConstants.SVG_NORMAL_VALUE); }