From 65f591bd268274a340eabe872864beb32ff4597a Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 8 Jan 2024 23:38:19 +0100 Subject: [PATCH] have mast mounts go on the rotor on SV --- .../ui/supportVehicle/SVEquipmentDatabaseView.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/megameklab/src/megameklab/ui/supportVehicle/SVEquipmentDatabaseView.java b/megameklab/src/megameklab/ui/supportVehicle/SVEquipmentDatabaseView.java index a1e0ab831..40da06005 100644 --- a/megameklab/src/megameklab/ui/supportVehicle/SVEquipmentDatabaseView.java +++ b/megameklab/src/megameklab/ui/supportVehicle/SVEquipmentDatabaseView.java @@ -52,10 +52,13 @@ protected void addEquipment(EquipmentType equip, int count) { if (!UnitUtil.hasTargComp(getEntity())) { UnitUtil.updateTC(getEntity(), equip); } + } else if (isMisc && equip.is("ISMastMount")) { + mount = new Mounted(getEntity(), equip); + getEntity().addEquipment(mount, VTOL.LOC_ROTOR, false); } else if (isMisc && UnitUtil.isFixedLocationSpreadEquipment(equip)) { - int location = TestEntity.getSystemWideLocation(getEntity()); - mount = new Mounted(getEntity(), equip); - getEntity().addEquipment(mount, location, false); + int location = TestEntity.getSystemWideLocation(getEntity()); + mount = new Mounted(getEntity(), equip); + getEntity().addEquipment(mount, location, false); } else { if (equip instanceof AmmoType) { if (getEntity().usesWeaponBays()) {