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

Improved Force Gen Unit Substitution #5085

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

IllianiCBT
Copy link
Collaborator

Updated the generateLance methods to include the allowsTanks parameter to allow us to ensure Vees aren't substituted into environments they cannot survive.

Enhanced logging and fallback mechanisms were also integrated to handle unit generation failures and substitutions more effectively.

Updated the `generateLance` methods to include the `allowsTanks` parameter to allow us to ensure Vees aren't substituted into environments they cannot survive.

Enhanced logging and fallback mechanisms were also integrated to handle unit generation failures and substitutions more effectively.
Added a log statement to track force generation in the AtBDynamicScenarioFactory. This helps in identifying issues by providing insights into the creation of forces based on templates.
@IllianiCBT IllianiCBT added the Force Generation Anything related to Force Generation (Opfor or Friendly) label Oct 20, 2024
@IllianiCBT IllianiCBT self-assigned this Oct 20, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.42%. Comparing base (a339462) to head (4c28b05).
Report is 134 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #5085   +/-   ##
=========================================
  Coverage     10.42%   10.42%           
- Complexity     6028     6036    +8     
=========================================
  Files           953      953           
  Lines        134113   134122    +9     
  Branches      19435    19434    -1     
=========================================
+ Hits          13979    13988    +9     
- Misses       118785   118789    +4     
+ Partials       1349     1345    -4     

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

Updated log statements to use clearer method calls for unit type and weight class names. Moved a log statement inside the appropriate condition block for better readability and context.
@HammerGS HammerGS merged commit 36e75a9 into MegaMek:master Oct 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Force Generation Anything related to Force Generation (Opfor or Friendly)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants