Skip to content

Commit

Permalink
Allow NONE for all units
Browse files Browse the repository at this point in the history
  • Loading branch information
SJuliez committed Nov 19, 2023
1 parent 97dc918 commit c6cd93b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions megamek/src/megamek/common/UnitRole.java
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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")
Expand Down

0 comments on commit c6cd93b

Please sign in to comment.