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

First pass at adding TAG-phase Torso Twist #5040

Merged
merged 6 commits into from
Jan 24, 2024

Conversation

Sleet01
Copy link
Collaborator

@Sleet01 Sleet01 commented Jan 11, 2024

This PR updates the Offboard / TAG phase to allow turret/torso twisting for units with TAG weapons in accordance with the errata ruling here:

https://bg.battletech.com/forums/index.php?topic=81851.0

, mainly by copying existing code in from FiringDisplay.java.

This also adds a separate message indicating that the Offboard/TAG phase is distinct from the Indirect Fire Targeting phase.

Testing:

  • Ran full MM unit tests.
  • Tested with player-controlled TAG units.

Note: Given how much shared code there is between TargetingPhaseDisplay.java and FiringDisplay.java, I'd like to take a crack at creating an abstract parent class for these two displays. It should reduce total code by a couple thousand lines.

@Sleet01
Copy link
Collaborator Author

Sleet01 commented Jan 12, 2024

Don't pull this one yet, I just realized I started on the code consolidation work before making units that twisted in the TAG phase unable to twist again later that turn.

I'll try to get that done tomorrow. While I think the TargetingPhaseDisplay.java/FiringDisplay.java code consolidation is worth looking at, it's too much work to complete right now.

@Sleet01
Copy link
Collaborator Author

Sleet01 commented Jan 13, 2024

Okay, this should be ready to go.

Copy link
Member

@NickAragua NickAragua left a comment

Choose a reason for hiding this comment

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

One minor adjustment, looks good otherwise.

@Sleet01 Sleet01 force-pushed the Implement_TAG_Torso_Twist_errata branch from 9486e79 to 4c04b4a Compare January 22, 2024 02:54
@Sleet01 Sleet01 requested a review from NickAragua January 22, 2024 02:57
Copy link
Member

@SJuliez SJuliez left a comment

Choose a reason for hiding this comment

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

With the change request resolved I'll go and assume that this is good to go

@SJuliez SJuliez merged commit ad2c78a into MegaMek:master Jan 24, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants