From c6cd93b0c35640de7d781186f0484fdc00d4ef0b Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 19 Nov 2023 10:31:38 +0100 Subject: [PATCH] Allow NONE for all units --- megamek/src/megamek/common/UnitRole.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/megamek/src/megamek/common/UnitRole.java b/megamek/src/megamek/common/UnitRole.java index 9a9b6759319..fd4f24b40ff 100644 --- a/megamek/src/megamek/common/UnitRole.java +++ b/megamek/src/megamek/common/UnitRole.java @@ -39,6 +39,9 @@ public enum UnitRole { /** This is the default role; given to units where the role definition is missing. */ UNDETERMINED (ALL), + /** Shows that this unit intentionally has no combat role. */ + NONE (ALL), + AMBUSHER (GROUND), BRAWLER (GROUND), JUGGERNAUT (GROUND), @@ -53,10 +56,8 @@ public enum UnitRole { FAST_DOGFIGHTER (AERO), FIRE_SUPPORT (AERO), INTERCEPTOR (AERO), - TRANSPORT (AERO), + TRANSPORT (AERO); - /** This role is used for some large aerospace units that intentionally have none of the combat roles. */ - NONE (AERO); /** @return True when the given unit may use this role. Used in MML. */ @SuppressWarnings("unused")