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

Retain and update Clan CASE #848

Merged
merged 2 commits into from
Dec 21, 2020
Merged

Retain and update Clan CASE #848

merged 2 commits into from
Dec 21, 2020

Conversation

neoancient
Copy link
Member

MML removes Clan CASE from mechs when they are loaded, presumably to keep it from showing up in the installed equipment list. This causes an unforeseen side effect from some of my recent work on BV calculations in MM, assigning an explosive equipment penalty when there shouldn't be one. MM used to base the check on an assumption that all Clan mechs have CASE installed automatically, though the rules state that Clan CASE can be omitted to reduce cost. Though we don't support that at this point, the BV calculation implementation is ready for it.

To fix it I removed the line that removes Clan CASE on load, added Clan CASE to the equipment that gets filtered out of the equipment list, and added some code that installs it as necessary when explosive equipment is added to a location. Removing CASE when the last explosive equipment is removed is a more complex problem because it can shift equipment numbers and cause problems with machine gun arrays. This has no effect on BV or the way the unit is saved. It can have an effect on cost calculations, but those are already incorrect and I'm planning to tackle those after BV, post-stable.

Fixes #846

@neoancient neoancient merged commit 6c98955 into master Dec 21, 2020
@neoancient neoancient deleted the clan_case branch December 21, 2020 16:50
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.

Ammunition in any location on a Clan 'Mech giving explosive ammunition BV penalty
2 participants