Skip to content

Commit

Permalink
Applying return text changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
Windchild292 committed Feb 23, 2021
1 parent 6761250 commit 1b44d5e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions MekHQ/src/mekhq/campaign/parts/MissingMekLocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,32 +255,32 @@ public String checkFixable() {
if (unit.findPart(p -> p instanceof MissingLandingGear) != null) {
continue;
} else {
return "Landing gear in " + unit.getEntity().getLocationName(loc) + " must be salvaged or scrapped first. They can then be re-installed.";
return "Landing gear in " + unit.getEntity().getLocationName(loc) + " must be salvaged or scrapped first.";
}
// Skip Avionics if already gone
} else if (slot.getIndex() == LandAirMech.LAM_AVIONICS) {
if (unit.findPart(p -> p instanceof MissingAvionics) != null) {
continue;
} else {
return "Avionics in " + unit.getEntity().getLocationName(loc) + " must be salvaged or scrapped first. They can then be re-installed.";
return "Avionics in " + unit.getEntity().getLocationName(loc) + " must be salvaged or scrapped first.";
}
}
}
} else if (slot.getType() == CriticalSlot.TYPE_EQUIPMENT) {
if ((slot.getMount() != null) && !slot.getMount().isDestroyed()) {
EquipmentType equipmentType = slot.getMount().getType();
if (equipmentType.hasFlag(MiscType.F_NULLSIG)) {
return "Null-Signature System must be salvaged or scrapped first. It can then be re-installed.";
return "Null-Signature System must be salvaged or scrapped first.";
} else if (equipmentType.hasFlag(MiscType.F_VOIDSIG)) {
return "Void-Signature System must be salvaged or scrapped first. It can then be re-installed.";
return "Void-Signature System must be salvaged or scrapped first.";
} else if (equipmentType.hasFlag(MiscType.F_CHAMELEON_SHIELD)) {
return "Chameleon shield must be salvaged or scrapped first. It can then be re-installed.";
return "Chameleon shield must be salvaged or scrapped first.";
}
}
}

if (slot.isRepairable()) {
return "Repairable parts in " + unit.getEntity().getLocationName(loc) + " must be salvaged or scrapped first. They can then be re-installed.";
return "Repairable parts in " + unit.getEntity().getLocationName(loc) + " must be salvaged or scrapped first.";
}
}
return null;
Expand Down

0 comments on commit 1b44d5e

Please sign in to comment.