Skip to content

Commit a780952

Browse files
authored
Merge pull request #4147 from IllianiCBT/mhq_defaultEdgeSettings
Set Default Edge Usage States to True
2 parents 743a15c + 162842d commit a780952

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: MekHQ/src/mekhq/campaign/personnel/PersonnelOptions.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ public void initialize() {
8787
addOption(l3a, TECH_FIXER, false);
8888
addOption(l3a, TECH_MAINTAINER, false);
8989

90-
addOption(edge, EDGE_MEDICAL, false);
91-
addOption(edge, EDGE_REPAIR_BREAK_PART, false);
92-
addOption(edge, EDGE_REPAIR_FAILED_REFIT, false);
93-
addOption(edge, EDGE_ADMIN_ACQUIRE_FAIL, false);
90+
addOption(edge, EDGE_MEDICAL, true);
91+
addOption(edge, EDGE_REPAIR_BREAK_PART, true);
92+
addOption(edge, EDGE_REPAIR_FAILED_REFIT, true);
93+
addOption(edge, EDGE_ADMIN_ACQUIRE_FAIL, true);
9494

9595
List<CustomOption> customs = CustomOption.getCustomAbilities();
9696
for (CustomOption option : customs) {
@@ -104,6 +104,8 @@ public void initialize() {
104104
case PilotOptions.MD_ADVANTAGES:
105105
addOption(md, option.getName(), option.getType(), option.getDefault());
106106
break;
107+
default:
108+
throw new IllegalStateException("Unexpected value in mekhq/campaign/personnel/PersonnelOptions.java/initialize: " + option.getGroup());
107109
}
108110
}
109111
}

0 commit comments

Comments
 (0)