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

Feat/acar formations reintroduced #5781

Merged
merged 5 commits into from
Jan 15, 2025

Conversation

Scoppio
Copy link
Collaborator

@Scoppio Scoppio commented Jan 14, 2025

What it does

Add the concept of orders, the orders allow you to create a set of "orders" to give to your units, things like giving a priority target, retreating after X turns, leaving the battlefield through north or south, force enemy to retreat (focus attack only enemies not withdrawing) or stop enemies from retreating (focust attack on only enemies withdrawing).

The orders allows the player to set strategic objectives they want their formations to achieve during the simulation. It was primarily implemented for MekHQ AtBScenarios, to have each team follow the objectives that were set for them in the game.

Currently the feature transform scenario objectives into orders for the player, and load those into the simulation. The game also works fine without the orders.

Related:

#6402

@Scoppio Scoppio self-assigned this Jan 14, 2025
@Scoppio Scoppio added the ACAR Any Issues related to the ACAR (Abstract Combat Auto Resolve) System label Jan 14, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.20%. Comparing base (fd739ba) to head (7889d93).
Report is 8 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5781      +/-   ##
============================================
- Coverage     10.21%   10.20%   -0.02%     
+ Complexity     6076     6073       -3     
============================================
  Files          1010     1011       +1     
  Lines        139310   139447     +137     
  Branches      20448    20480      +32     
============================================
- Hits          14231    14224       -7     
- Misses       123703   123852     +149     
+ Partials       1376     1371       -5     

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

@Scoppio Scoppio requested a review from IllianiCBT January 15, 2025 01:15
Copy link
Member

@HammerGS HammerGS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Co-Pilot checked and confirmed no issues

@HammerGS HammerGS merged commit 3650136 into MegaMek:master Jan 15, 2025
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ACAR Any Issues related to the ACAR (Abstract Combat Auto Resolve) System
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants