8000 Fix #6618: Implemented Pre-Tukayyid Clan Tech Restrictions to Force Generation by IllianiBird · Pull Request #6621 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix #6618: Implemented Pre-Tukayyid Clan Tech Restrictions to Force Generation #6621

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

Merged
merged 2 commits into from
Apr 11, 2025

Conversation

IllianiBird
Copy link
Collaborator
  • Added a new constant BATTLE_OF_TUKAYYID.
  • Updated unit generation logic to restrict Clan technology in non-Clan forces before Tukayyid.

Fix #6618

Dev Notes

Me and Hammer determined last year that Tukayyid would be the cut-off point after which the Houses started relaxing their tendency to hoard Clantech. Generally speaking, prior to this date you would occasionally see units in the Clan Invasion theatre rocking the odd bit of Clantech, however these unique situations are not something we can easily model so it's better to just bar non-Clan factions from accessing Clantech prior to the watershed.

- Added a new constant `BATTLE_OF_TUKAYYID`.
- Updated unit generation logic to restrict Clan technology in non-Clan forces before Tukayyid.
…d on campaign timeline.

- Replaced duplicate "isFactionClan" and "isBeforeBattleOfTukayyid" methods with streamlined versions.
- Added detailed documentation and JavaDoc comments for the new helper methods `filterOutClanTech` and `isFactionClan`.
- Removed redundant comments and legacy code snippets for improved readability.
@IllianiBird IllianiBird added Bug AtB StratCon Bugs relating strictly to StratCon Severity: Medium Issues described as medium severity as per the new issue form labels Apr 10, 2025
@IllianiBird IllianiBird self-assigned this Apr 10, 2025
Copy link
codecov bot commented Apr 10, 2025

Codecov Report

Attention: Patch coverage is 2.85714% with 68 lines in your changes missing coverage. Please review.

Project coverage is 11.43%. Comparing base (2fef8ef) to head (2344547).
Report is 80 commits behind head on master.

Files with missing lines Patch % Lines
...hq/campaign/mission/AtBDynamicScenarioFactory.java 0.00% 35 Missing ⚠️
...campaign/market/unitMarket/AbstractUnitMarket.java 5.26% 18 Missing ⚠️
...q/campaign/mission/resupplyAndCaches/Resupply.java 0.00% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6621   +/-   ##
=========================================
  Coverage     11.43%   11.43%           
- Complexity     6451     6456    +5     
=========================================
  Files          1086     1086           
  Lines        139459   139482   +23     
  Branches      21571    21577    +6     
=========================================
+ Hits          15948    15953    +5     
- Misses       121914   121932   +18     
  Partials       1597     1597           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@IllianiBird IllianiBird merged commit 4b9286e into MegaMek:master Apr 11, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AtB Bug Severity: Medium Issues described as medium severity as per the new issue form StratCon Bugs relating strictly to StratCon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Issue] IS Pre-Clan convoy contains Clan VTOL
2 participants
0