Skip to content

Commit

Permalink
FluffImageHelper.java: Review change
Browse files Browse the repository at this point in the history
  • Loading branch information
SJuliez committed Jul 14, 2023
1 parent f9b4e5d commit f75e49f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ protected static Image loadFluffImage(final Entity unit) {
private FluffImageHelper() { }

private static String getImagePath(final ASCardDisplayable element) {
if ((element.getASUnitType() == ASUnitType.SV) && (element.hasMovementMode("a"))) {
return DIR_NAME_CONVFIGHTER;
}
switch (element.getASUnitType()) {
case WS:
return DIR_NAME_WARSHIP;
Expand All @@ -209,7 +206,9 @@ private static String getImagePath(final ASCardDisplayable element) {
return DIR_NAME_PROTOMEK;
case CV:
case SV:
return DIR_NAME_VEHICLE;
if (!element.hasMovementMode("a")) {
return DIR_NAME_VEHICLE;
} // intentional fall through
case AF:
return DIR_NAME_FIGHTER;
default:
Expand Down

0 comments on commit f75e49f

Please sign in to comment.