Skip to content

Commit

Permalink
feat: removed redundant Units matter auto-resolve to focus on ACS-lik…
Browse files Browse the repository at this point in the history
…e, a little bit of performance improvements
  • Loading branch information
Scoppio committed Dec 7, 2024
1 parent e67f5e1 commit 9ea7d34
Show file tree
Hide file tree
Showing 44 changed files with 899 additions and 1,146 deletions.
2 changes: 0 additions & 2 deletions MekHQ/resources/mekhq/resources/AutoResolveMethod.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
AutoResolveMethod.PRINCESS.text=Princess
AutoResolveMethod.PRINCESS.toolTipText=Princess
AutoResolveMethod.UNITS_MATTER.text=Units Matter
AutoResolveMethod.UNITS_MATTER.toolTipText=Units Matter
AutoResolveMethod.ABSTRACT_COMBAT.text=Abstract Combat
AutoResolveMethod.ABSTRACT_COMBAT.toolTipText=Abstract Combat
3 changes: 2 additions & 1 deletion MekHQ/src/mekhq/AtBGameThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import megamek.client.ui.swing.ClientGUI;
import megamek.common.*;
import megamek.common.annotations.Nullable;
import megamek.common.options.GameOptions;
import megamek.common.planetaryconditions.PlanetaryConditions;
import megamek.logging.MMLogger;
import mekhq.campaign.force.Force;
Expand Down Expand Up @@ -140,7 +141,7 @@ public void run() {
client.getLocalPlayer().setConstantInitBonus(campaign.getInitiativeBonus());

if (started) {
client.getGame().getOptions().loadOptions();
((GameOptions) client.getGame().getOptions()).loadOptions();
client.sendGameOptions(password, app.getCampaign().getGameOptionsVector());
Thread.sleep(MekHQ.getMHQOptions().getStartGameDelay());
}
Expand Down
3 changes: 2 additions & 1 deletion MekHQ/src/mekhq/GameThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import megamek.common.Entity;
import megamek.common.MapSettings;
import megamek.common.WeaponOrderHandler;
import megamek.common.options.GameOptions;
import megamek.common.preference.PreferenceManager;
import megamek.logging.MMLogger;
import mekhq.campaign.Campaign;
Expand Down Expand Up @@ -178,7 +179,7 @@ public void run() {
client.getLocalPlayer().setCamouflage(app.getCampaign().getCamouflage().clone());

if (started) {
client.getGame().getOptions().loadOptions();
((GameOptions) client.getGame().getOptions()).loadOptions();
client.sendGameOptions(password, app.getCampaign().getGameOptionsVector());
Thread.sleep(MekHQ.getMHQOptions().getStartGameDelay());
}
Expand Down
Loading

0 comments on commit 9ea7d34

Please sign in to comment.