Skip to content

Commit

Permalink
Merge pull request #2114 from RexPearce/fix-refit-time-moving-part
Browse files Browse the repository at this point in the history
Issue #1079: Add refit time for moving a part between locations
  • Loading branch information
sixlettervariables authored Oct 5, 2020
2 parents 29dd3f0 + b21a875 commit dfa4779
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions MekHQ/src/mekhq/campaign/parts/Refit.java
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,8 @@ public void calculate() {
updateRefitClass(CLASS_C);
}
if (movedPart instanceof EquipmentPart) {
//TODO: set this as salvaging
//boolean isSalvaging = movedPart.isSalvaging();
//movedPart.setSalvaging(true);
//movedPart.updateConditionFromEntity(false);
time += movedPart.getBaseTime();
//movedPart.setSalvaging(isSalvaging);
// Use equivalent MissingEquipmentPart install time
time += movedPart.getMissingPart().getBaseTime();
}
} else {
//its a new part
Expand Down

0 comments on commit dfa4779

Please sign in to comment.