Skip to content

Commit

Permalink
replaced literal with constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ggeorgovassilis committed Feb 17, 2024
1 parent a0db304 commit 25edf27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/superstartrek/client/vessels/Enterprise.java
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public void dockInStarbase() {
}

boolean canBeRepaired(Setting setting) {
return setting.isBroken() || setting.getCurrentUpperBound() < 0.75 * setting.getMaximum();
return setting.isBroken() || setting.getCurrentUpperBound() < Constants.ENTERPRISE_SELF_REPAIR_STRENGTH * setting.getMaximum();
}

boolean maybeRepairProvisionally(String name, Setting setting) {
Expand Down

0 comments on commit 25edf27

Please sign in to comment.