From 92768e005f9e757b80e26d58dc6a2239908dd741 Mon Sep 17 00:00:00 2001 From: Redbat <4107444+redbatz@users.noreply.github.com> Date: Sun, 13 Feb 2022 12:20:25 +0100 Subject: [PATCH 1/2] Added Coolant Pod to Other category check in EquipmentDatabaseCategory --- src/megameklab/com/ui/util/EquipmentDatabaseCategory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/megameklab/com/ui/util/EquipmentDatabaseCategory.java b/src/megameklab/com/ui/util/EquipmentDatabaseCategory.java index 60307d19e..6fdd64417 100644 --- a/src/megameklab/com/ui/util/EquipmentDatabaseCategory.java +++ b/src/megameklab/com/ui/util/EquipmentDatabaseCategory.java @@ -81,7 +81,8 @@ public enum EquipmentDatabaseCategory { && !(eq.hasFlag(F_PARTIAL_WING) && en.hasETypeFlag(Entity.ETYPE_PROTOMECH)) && !eq.hasFlag(F_SPONSON_TURRET) && !eq.hasFlag(F_PINTLE_TURRET)) - || (eq instanceof TAGWeapon)), + || (eq instanceof TAGWeapon) + || (eq instanceof AmmoType && ((AmmoType)eq).getAmmoType() == AmmoType.T_COOLANT_POD)), AP ("Anti-Personnel", (eq, en) -> UnitUtil.isBattleArmorAPWeapon(eq), From ae6dafd0329926cac439f0894d168f0b1f709014 Mon Sep 17 00:00:00 2001 From: Mikael Nilsson <4107444+redbatz@users.noreply.github.com> Date: Sun, 13 Feb 2022 17:20:39 +0100 Subject: [PATCH 2/2] Update src/megameklab/com/ui/util/EquipmentDatabaseCategory.java Co-authored-by: Justin Bowen <39067288+Windchild292@users.noreply.github.com> --- src/megameklab/com/ui/util/EquipmentDatabaseCategory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/megameklab/com/ui/util/EquipmentDatabaseCategory.java b/src/megameklab/com/ui/util/EquipmentDatabaseCategory.java index 6fdd64417..8cbac64ff 100644 --- a/src/megameklab/com/ui/util/EquipmentDatabaseCategory.java +++ b/src/megameklab/com/ui/util/EquipmentDatabaseCategory.java @@ -82,7 +82,7 @@ public enum EquipmentDatabaseCategory { && !eq.hasFlag(F_SPONSON_TURRET) && !eq.hasFlag(F_PINTLE_TURRET)) || (eq instanceof TAGWeapon) - || (eq instanceof AmmoType && ((AmmoType)eq).getAmmoType() == AmmoType.T_COOLANT_POD)), + || ((eq instanceof AmmoType) && (((AmmoType) eq).getAmmoType() == AmmoType.T_COOLANT_POD))), AP ("Anti-Personnel", (eq, en) -> UnitUtil.isBattleArmorAPWeapon(eq),