Skip to content

Commit

Permalink
Small craft unit type added GROUND_SUPPORT, ASSAULT, INFANTRY_CARRIER…
Browse files Browse the repository at this point in the history
…, BA_CARRIER roles
  • Loading branch information
SuperStucco authored and SuperStucco committed May 29, 2024
1 parent 0ff1491 commit d1ef66d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions megamek/src/megamek/client/ratgenerator/MissionRole.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,13 @@ public boolean fitsUnitType(int unitType) {
// Roles for conventional and aerospace fighters
case BOMBER:
case INTERCEPTOR:
return unitType == UnitType.CONV_FIGHTER ||
unitType == UnitType.AEROSPACEFIGHTER;

case GROUND_SUPPORT:
return unitType == UnitType.CONV_FIGHTER || unitType == UnitType.AEROSPACEFIGHTER;
return unitType == UnitType.CONV_FIGHTER ||
unitType == UnitType.AEROSPACEFIGHTER ||
unitType == UnitType.SMALL_CRAFT;

case ESCORT:
return unitType == UnitType.CONV_FIGHTER ||
Expand All @@ -207,9 +212,12 @@ public boolean fitsUnitType(int unitType) {

// Roles for DropShips
case ASSAULT:
case VEE_CARRIER:
case INFANTRY_CARRIER:
case BA_CARRIER:
return unitType == UnitType.DROPSHIP ||
unitType == UnitType.SMALL_CRAFT;

case VEE_CARRIER:
case MECH_CARRIER:
case TUG:
case POCKET_WARSHIP:
Expand Down

0 comments on commit d1ef66d

Please sign in to comment.