Skip to content
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

Fixed Loading & Saving of Some Campaign Options #5858

Merged
merged 6 commits into from
Jan 23, 2025

Conversation

IllianiCBT
Copy link
Collaborator

@IllianiCBT IllianiCBT commented Jan 22, 2025

  • Updated the logic for handling AtB and StratCon compatibility, ensuring proper selection behavior.
  • Fixed disallowing Clan parts usage from IS sources, fixing a duplicate line.
  • Corrected and completed financial year duration configuration in the finances tab.

Fix #5860

Updated the logic for handling AtB and StratCon compatibility, ensuring proper selection behavior. Streamlined disallowing Clan parts usage from IS sources, fixing a duplicate line. Corrected and completed financial year duration configuration in the finances tab.
@IllianiCBT IllianiCBT added Campaign Options Relates to, or includes, campaign option changes Severity: Critical Issues described as critical as per the new issue form labels Jan 22, 2025
@IllianiCBT IllianiCBT self-assigned this Jan 22, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.29%. Comparing base (899ef61) to head (dfd464d).
Report is 54 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5858      +/-   ##
============================================
- Coverage     10.31%   10.29%   -0.02%     
+ Complexity     6128     6122       -6     
============================================
  Files          1038     1038              
  Lines        138806   139049     +243     
  Branches      20551    20592      +41     
============================================
  Hits          14322    14322              
- Misses       123094   123328     +234     
- Partials       1390     1399       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Deleted unused `TRANSIT_UNIT_*` constants and associated methods from `CampaignOptions`. Added new options for mercenary size limits and infantry usage in `MarketsTab`, extending campaign options functionality.
Implemented a new panel and controls in the AbilitiesTab to configure the cost per rank of Edge for combat abilities. Updated UI components and resources to support this addition, ensuring a user-friendly interface.
Removed the Edge Cost panel and its related components from the AbilitiesTab. This cleanup eliminates unused elements and simplifies the UI code structure.
Updated `SkillsTab` to accept `CampaignOptions` for enhanced configuration management. Implemented edge cost configuration in the UI and synced it with campaign options for loading and saving. This improves extensibility and maintains consistency across campaign settings.
Implemented functionality to load and apply preset rank systems within the campaign options, ensuring greater customization and consistency. Updated relevant methods and class references to handle the new rank system parameter appropriately.
@IllianiCBT
Copy link
Collaborator Author

  • Fixed loading and unloading of Ranks
  • Added missing Edge Costs
  • Added multiple incorrectly parsed options

@IllianiCBT IllianiCBT merged commit f52fba0 into MegaMek:master Jan 23, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Campaign Options Relates to, or includes, campaign option changes Severity: Critical Issues described as critical as per the new issue form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[0.50.03-SNAPSHOT] (Campaign Options IIC) Choice of rank system doesn't save
2 participants