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

Fixes #1031 - Show structure collapse warning when deploying and moving. #4984

Merged
merged 15 commits into from
Dec 30, 2023

Conversation

HoneySkull
Copy link
Collaborator

Fixes #1031
Fixes #2595

Implements a feature to display a warning symbol on hexes with structures during the Deployment and Movement where the CF for the building is less than the weight of the selected entity.

In the deployment phase, hexes that are valid deployment hexes with buildings will display a warning symbol if CF of the structure is less than the weight of the selected entity combined with any existing entities on that hex.

In the movement phase, a warning symbol will be displayed on hexes with structures that could collapse within a generous movement radius. (max run/jump hexes in radial distance).

image

image

The structural warning symbols can be turned on an off in the view menu:
image

@HoneySkull HoneySkull marked this pull request as draft December 26, 2023 15:16
@HoneySkull
Copy link
Collaborator Author

HoneySkull commented Dec 26, 2023

Set as draft - I have an edge case to solve for flying units over buildings. (Solved)

@HoneySkull HoneySkull marked this pull request as ready for review December 26, 2023 18:56
Copy link
Member

@neoancient neoancient left a comment

Choose a reason for hiding this comment

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

Good overall. Just a couple quick and easy changes.

@neoancient neoancient merged commit ff1719b into MegaMek:master Dec 30, 2023
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
2 participants