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

Laser insulator and RISC laser pulse module validation #5102

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

neoancient
Copy link
Member

Adds check for valid weapon in same location.

Fixes MegaMek/megameklab#1151

@neoancient neoancient merged commit 7dcc1d4 into master Jan 31, 2024
4 checks passed
|| !(m.getLinked().getType() instanceof WeaponType)
|| !m.getLinked().getType().hasFlag(WeaponType.F_LASER)
|| m.getLinked().getType().hasFlag(WeaponType.F_PULSE))) {
buff.append("Laser insulator requires a non-pulse laser in the same location.\n");
Copy link
Member

Choose a reason for hiding this comment

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

This is wrong, right? The text should say 'Laser pulse module', not 'Laser insulator'

@SJuliez SJuliez deleted the laser_insulator_validation branch April 20, 2024 09:10
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.

[0.49.8] Laser Insulator needs functionality to attach it to a specific weapon
3 participants