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

Large engine crits #353

Merged
merged 3 commits into from
Oct 6, 2019
Merged

Large engine crits #353

merged 3 commits into from
Oct 6, 2019

Conversation

neoancient
Copy link
Member

Fixes #352
Large engines (rating > 400) occupy more critical slots and may need to punt equipment that has previously been installed there. The call to resetSystemCrits was missing in the method that recalculates engine rating. There was also a bug that assumed the large engine flag was set correctly in the engine combo box, but this was not always true. Also, superheavy mechs were reserving four slots for the gryo, when then should only be requiring two double slots.

// Clan and large flags are specific to the engine. the superheavy flag depends on the mech
// and may have changed since the last refresh.
int flags = e.getFlags() & (Engine.CLAN_ENGINE | Engine.LARGE_ENGINE);
// Clan and flag is specific to the engine. the superheavy and large flags depend on the mech
Copy link
Contributor

Choose a reason for hiding this comment

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

"Clan and flag..." ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can't read.

@neoancient neoancient merged commit 96deeca into master Oct 6, 2019
@neoancient neoancient deleted the large_engine_crits branch October 6, 2019 19:34
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.

Large engine crits not allocated correctly
2 participants