-
Notifications
You must be signed in to change notification settings - Fork 202
PR: Option to Disable Intel Breach #8593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
PR: Option to Disable Intel Breach #8593
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8593 +/- ##
============================================
- Coverage 12.49% 12.49% -0.01%
+ Complexity 7549 7546 -3
============================================
Files 1293 1293
Lines 166130 166164 +34
Branches 25039 25043 +4
============================================
+ Hits 20753 20754 +1
- Misses 143382 143416 +34
+ Partials 1995 1994 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I don't think the enable-disable state will work in campaign options. We've had issues with it in the past not properly updating state. I recommend testing the various ways to open campaign options with prisoners enabled and disabled. Assuming we haven't magically fixed the issue you'll likely see your option incorrectly enabled/disabled. As we don't use this functionality anywhere else in COIIC (for this reason) you can probably get rid. |
It seems to be working - I messed around with saving the settings, closing without saving them, reloading MekHQ, relaunching MekHQ, with all variations of the campaign options for prisoners & the intel breach option and it looks to be properly enabling/disabling. I'm curious if there can be an issue with the order the components are being added to the Campaign Options, and just I got lucky with this. I can remove it because there really isn't any harm in it being toggled when the other prisoner settings are used. |
Adds a campaign option to "Disable Intel Breach Chance". This option can only be enabled if the MekHQ prisoner capture style is enabled. If the setting is enabled, intel breach events won't happen when releasing prisoners.