From 9304ef4f0f1632931969c645303b8acdfd0f43c6 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 15 Sep 2024 22:40:29 +0200 Subject: [PATCH] fix slot counting validation on PM --- megamek/src/megamek/common/verifier/TestProtoMek.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/megamek/src/megamek/common/verifier/TestProtoMek.java b/megamek/src/megamek/common/verifier/TestProtoMek.java index a91c004a41a..0385fe36ff2 100644 --- a/megamek/src/megamek/common/verifier/TestProtoMek.java +++ b/megamek/src/megamek/common/verifier/TestProtoMek.java @@ -276,7 +276,8 @@ public boolean hasIllegalEquipmentCombinations(StringBuffer buff) { Map weightByLoc = new HashMap<>(); int meleeWeapons = 0; for (Mounted mount : proto.getEquipment()) { - if (!requiresSlot(mount.getType())) { + if (!requiresSlot(mount.getType()) || (mount.getType() instanceof ArmorType)) { + // armor is added separately continue; } slotsByLoc.merge(mount.getLocation(), 1, Integer::sum);