Skip to content

Commit

Permalink
Merge pull request #5217 from IllianiCBT/formationLevel_invalid
Browse files Browse the repository at this point in the history
Enhanced INVALID Formation Level Checking
  • Loading branch information
HammerGS authored Nov 23, 2024
2 parents dcfb52a + 06ba17f commit 90ba6c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MekHQ/src/mekhq/campaign/force/FormationLevel.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
*/
package mekhq.campaign.force;

import java.util.ResourceBundle;

import mekhq.MekHQ;
import mekhq.campaign.Campaign;
import mekhq.campaign.universe.Faction;

import java.util.ResourceBundle;

public enum FormationLevel {
// region Enum Declarations
REMOVE_OVERRIDE("FormationLevel.REMOVE_OVERRIDE.text", "FormationLevel.REMOVE_OVERRIDE.description", -1, true, true,
Expand Down Expand Up @@ -218,7 +218,7 @@ public static FormationLevel parseFromString(final String formationLevel) {
return switch (formationLevel) {
case "0", "Remove Override" -> REMOVE_OVERRIDE;
case "1", "None" -> NONE;
case "2", "Invalid" -> INVALID;
case "2", "Invalid", "Invalid Formation" -> INVALID;

// Inner Sphere
case "3", "Lance" -> LANCE;
Expand Down

0 comments on commit 90ba6c1

Please sign in to comment.