-
Notifications
You must be signed in to change notification settings - Fork 290
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
Fix 6240: era-illegal asf bombs [Note: breaks MHQ] #6254
Open
Sleet01
wants to merge
9
commits into
MegaMek:master
Choose a base branch
from
Sleet01:Fix_6240_era_illegal_ASF_bombs
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+358
−95
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1cdfcba
Initial addition of existing legallity check to ASF loadout code
Sleet01 d32d5db
Add first unit test of new check
Sleet01 a41f9b5
Fix unexpected RL addition when no bombs loaded due to ineligibility
Sleet01 c4b6ca6
Add Prototype RL10 Bomb and weapontype
Sleet01 cebb547
Fix RL-P intro dates and bomb num; add more unittests
Sleet01 57d5fea
Clean up formatting and class name
Sleet01 7e6bf8a
Explicitly set bomb RL handlers for correct behaviour
Sleet01 10ec96d
Add missing entry for equipment population
Sleet01 5ad56d7
Update RL-P internal name
Sleet01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
/** | ||
* MegaMek - Copyright (C) 2007 Ben Mazur ([email protected]) | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the Free | ||
* Software Foundation; either version 2 of the License, or (at your option) | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the Free | ||
* Software Foundation; either version 2 of the License, or (at your option) | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* for more details. | ||
*/ | ||
package megamek.common.weapons; | ||
|
@@ -17,20 +17,14 @@ | |
import java.util.Enumeration; | ||
import java.util.Vector; | ||
|
||
import megamek.common.Coords; | ||
import megamek.common.Entity; | ||
import megamek.common.Game; | ||
import megamek.common.Minefield; | ||
import megamek.common.Report; | ||
import megamek.common.Targetable; | ||
import megamek.common.ToHitData; | ||
import megamek.common.*; | ||
import megamek.common.actions.WeaponAttackAction; | ||
import megamek.server.totalwarfare.TWGameManager; | ||
|
||
public class RLHandler extends MissileWeaponHandler { | ||
|
||
/** | ||
* | ||
* | ||
*/ | ||
private static final long serialVersionUID = -3848472655779311898L; | ||
|
||
|
@@ -46,7 +40,7 @@ public RLHandler(ToHitData t, WeaponAttackAction w, Game g, TWGameManager m) { | |
|
||
/* | ||
* (non-Javadoc) | ||
* | ||
* | ||
* @see | ||
* megamek.common.weapons.WeaponHandler#specialResolution(java.util.Vector, | ||
* megamek.common.Entity, boolean) | ||
|
@@ -79,4 +73,4 @@ protected boolean specialResolution(Vector<Report> vPhaseReport, | |
} | ||
return false; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I may say so, this feels slightly like newline overkill (the whole 7 lines or so)