Skip to content

Commit

Permalink
Merge pull request #5693 from IllianiCBT/stratCon_gmReinforcement
Browse files Browse the repository at this point in the history
Removed SP Cost for GM Reinforcement Attempts in StratCon
  • Loading branch information
Sleet01 authored Jan 9, 2025
2 parents d187832 + e8820f4 commit 4495c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion MekHQ/resources/mekhq/resources/AtBStratCon.properties
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ reinforcementConfirmation.confirmButton=Reinforce
reinforcementConfirmation.confirmButton.tooltip=Make reinforcement attempt.
reinforcementConfirmation.confirmButton.gm=Reinforce (GM)
reinforcementConfirmation.confirmButton.gm.tooltip=Make a reinforcement attempt, bypassing the\
\ reinforcement check.
\ reinforcement check and Support Point cost.
reinforcementConfirmation.cancelButton=Cancel
unitsSelectedLabel.bv=selected (ignores crew skill)
unitsSelectedLabel.count=selected
Expand Down
7 changes: 1 addition & 6 deletions MekHQ/src/mekhq/gui/stratcon/StratconScenarioWizard.java
Original file line number Diff line number Diff line change
Expand Up @@ -789,12 +789,7 @@ private void reinforcementConfirmDialog() {
JButton reinforceButtonGM = new JButton(resources.getString("reinforcementConfirmation.confirmButton.gm"));
reinforceButtonGM.setToolTipText(resources.getString("reinforcementConfirmation.confirmButton.gm.tooltip"));
reinforceButtonGM.addActionListener(evt -> {
int spentSupportPoints = (int) spnSupportPointCost.getValue();
int finalTargetNumber = targetNumber - ((spentSupportPoints - 1) * 2);

currentCampaignState.setSupportPoints(currentCampaignState.getSupportPoints() - spentSupportPoints);

btnCommitClicked(evt, finalTargetNumber, true);
btnCommitClicked(evt, 0, true);
dialog.dispose();
});
reinforceButtonGM.setVisible(campaign.isGM());
Expand Down

0 comments on commit 4495c68

Please sign in to comment.