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

Making Supercooled Myomer operational #4111

Merged
merged 7 commits into from
Jan 15, 2023

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Jan 14, 2023

As the title says; SCM was construction-only so far. A difficulty is that SCM is not destroyed upon the first crit which it shares with Partial Wings and Mek shields. There are probably issues with damage to shields and PW which I haven't tried to solve here.
Sadly, there's 0 canon units using SCM.

@codecov
Copy link

codecov bot commented Jan 14, 2023

Codecov Report

Base: 23.00% // Head: 22.95% // Decreases project coverage by -0.04% ⚠️

Coverage data is based on head (6acc1cd) compared to base (8ff7917).
Patch coverage: 7.14% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4111      +/-   ##
============================================
- Coverage     23.00%   22.95%   -0.05%     
- Complexity     4813     4819       +6     
============================================
  Files          2264     2282      +18     
  Lines        249505   250311     +806     
  Branches      46325    46372      +47     
============================================
+ Hits          57398    57460      +62     
- Misses       190648   191399     +751     
+ Partials       1459     1452       -7     
Impacted Files Coverage Δ
.../src/megamek/client/ui/swing/UnitEditorDialog.java 0.00% <0.00%> (ø)
megamek/src/megamek/common/Engine.java 36.08% <0.00%> (-0.06%) ⬇️
megamek/src/megamek/common/Mech.java 15.29% <0.00%> (-0.16%) ⬇️
megamek/src/megamek/server/GameManager.java 0.22% <ø> (+<0.01%) ⬆️
megamek/src/megamek/common/Entity.java 12.87% <7.69%> (+0.02%) ⬆️
megamek/src/megamek/common/EquipmentType.java 34.58% <50.00%> (+0.12%) ⬆️
megamek/src/megamek/common/Mounted.java 17.85% <50.00%> (+0.07%) ⬆️
megamek/src/megamek/common/MiscType.java 91.43% <100.00%> (ø)
megamek/src/megamek/common/enums/SkillLevel.java 27.77% <0.00%> (-2.84%) ⬇️
...ek/src/megamek/client/ui/swing/GUIPreferences.java 32.45% <0.00%> (-1.27%) ⬇️
... and 147 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@Windchild292 Windchild292 left a comment

Choose a reason for hiding this comment

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

Looks good, just a few extra brackets

Comment on lines 1166 to 1167
}
if (nhits < hits) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
}
if (nhits < hits) {
}
if (nhits < hits) {

}

/**
* @return the heat generated while the mech is walking.
*/
public int getWalkHeat(Entity e) {
boolean hasSCM = ((e instanceof Mech) && ((Mech) e).hasWorkingSCM());
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
boolean hasSCM = ((e instanceof Mech) && ((Mech) e).hasWorkingSCM());
boolean hasSCM = (e instanceof Mech) && ((Mech) e).hasWorkingSCM();

}
}

/**
* @return the heat generated while the mech is running.
*/
public int getRunHeat(Entity e) {
boolean hasSCM = ((e instanceof Mech) && ((Mech) e).hasWorkingSCM());
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
boolean hasSCM = ((e instanceof Mech) && ((Mech) e).hasWorkingSCM());
boolean hasSCM = (e instanceof Mech) && ((Mech) e).hasWorkingSCM();

}
}

/**
* @return the heat generated while the mech is sprinting.
*/
public int getSprintHeat() {
public int getSprintHeat(Entity e) {
boolean hasSCM = ((e instanceof Mech) && ((Mech) e).hasWorkingSCM());
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
boolean hasSCM = ((e instanceof Mech) && ((Mech) e).hasWorkingSCM());
boolean hasSCM = (e instanceof Mech) && ((Mech) e).hasWorkingSCM();

@SJuliez SJuliez merged commit 4a7ef75 into MegaMek:master Jan 15, 2023
@SJuliez SJuliez deleted the Get_SCM_Operational branch January 16, 2023 20:33
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.

2 participants