Skip to content

WIP - Equipment/Unit modifiers (salvage quality, partial repair, scenario effect) #6229

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

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

move MekView, separate resources, adaptations for RunMPEquipmentModifier

0a5f398
Select commit
Loading
Failed to load commit list.
Draft

WIP - Equipment/Unit modifiers (salvage quality, partial repair, scenario effect) #6229

move MekView, separate resources, adaptations for RunMPEquipmentModifier
0a5f398
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Dec 7, 2024 in 7s

5 new alerts

New alerts in code changed by this pull request

  • 1 warning
  • 4 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 663 in megamek/src/megamek/client/ui/mekview/MekView.java

See this annotation in the file changed.

Code scanning / CodeQL

Chain of 'instanceof' tests Note

This if block performs a chain of 7 type tests - consider alternatives, e.g. polymorphism or the visitor pattern.

Check notice on line 15864 in megamek/src/megamek/common/Entity.java

See this annotation in the file changed.

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
Modifiable.getModifiers
; it is advisable to add an Override annotation.

Check notice on line 1782 in megamek/src/megamek/common/Mounted.java

See this annotation in the file changed.

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
Modifiable.getModifiers
; it is advisable to add an Override annotation.

Check notice on line 2261 in megamek/src/megamek/common/Tank.java

See this annotation in the file changed.

Code scanning / CodeQL

Exposing internal representation Note

getDejammableWeapons exposes the internal representation stored in field dejammableWeapons. The value may be modified
after this call to getDejammableWeapons
.

Check warning on line 3560 in megamek/src/megamek/common/actions/WeaponAttackAction.java

See this annotation in the file changed.

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
weapon
may be null at this access as suggested by
this
null guard.
Variable
weapon
may be null at this access as suggested by
this
null guard.
Variable
weapon
may be null at this access as suggested by
this
null guard.
Variable
weapon
may be null at this access as suggested by
this
null guard.
Variable
weapon
may be null at this access as suggested by
this
null guard.
Variable
weapon
may be null at this access because of
this
null argument.