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

Fix 1552 rfe add ada air defense arrow iv munition #4762

Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ Auto Rifle
<Field Guns Equipment>
CLArrowIV
CLArrowIV Ammo
CLArrowIV
CLArrowIV Ammo
</Field Guns Equipment>
<type>
Clan Level 3
Expand All @@ -46,4 +44,4 @@ Intro date is based on when the weapon becomes an Advanced weapon. Since MM can'

<armorKit>
GenericKit
</armorKit>
</armorKit>
1 change: 1 addition & 0 deletions megamek/i18n/megamek/client/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3924,6 +3924,7 @@ WeaponAttackAction.LegBlockedByTerrain=Nearby terrain blocks leg weapons.
WeaponAttackAction.MinimumAlt1=attacker must be at least at elevation 1
WeaponAttackAction.NoAeroDirectArty=Airborne aerospace units cannot make direct-fire artillery attacks.
WeaponAttackAction.FlakOnGroundedAero=Grounded aerospace/vtol units are not valid Flak targets.
WeaponAttackAction.ADARangeBracket=ADA range brackets (+0/+2/+4)
WeaponAttackAction.NoAttacker=Invalid Attacker!
WeaponAttackAction.NoBombInMechMode=Cannot launch bomb in mech mode.
WeaponAttackAction.NoFiringSolution=no firing solution to target.
Expand Down
2 changes: 2 additions & 0 deletions megamek/mmconf/serialkiller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<regexps>
<regexp>\[C$</regexp>
<regexp>\[I$</regexp>
<regexp>\[Ljava\.lang.Enum;$</regexp>
<regexp>java\.io\.File$</regexp>
<regexp>java\.lang\.Boolean$</regexp>
<regexp>java\.lang\.Enum$</regexp>
Expand All @@ -31,6 +32,7 @@
<regexp>java\.util\.concurrent\.locks\.ReentrantLock\$Sync$</regexp>
<regexp>java\.util\.UUID$</regexp>
<regexp>java\.util\.EnumMap$</regexp>
<regexp>java\.util\.EnumSet.*</regexp>
<regexp>java\.util\.HashMap$</regexp>
<regexp>java\.util\.HashSet$</regexp>
<regexp>java\.util\.Hashtable$</regexp>
Expand Down
4 changes: 2 additions & 2 deletions megamek/src/megamek/client/bot/BotClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,10 @@ protected List<Coords> getStartingCoordsArray(Entity deployed_ent) {
if (atype.getAmmoType() == AmmoType.T_ATM) {
weapon_count++;
av_range += 15.0;
if (atype.getMunitionType() == AmmoType.M_HIGH_EXPLOSIVE) {
if (atype.getMunitionType().contains(AmmoType.Munitions.M_HIGH_EXPLOSIVE)) {
av_range -= 6;
}
if (atype.getMunitionType() == AmmoType.M_EXTENDED_RANGE) {
if (atype.getMunitionType().contains(AmmoType.Munitions.M_EXTENDED_RANGE)) {
av_range += 12.0;
}
} else if (atype.getAmmoType() == AmmoType.T_MML) {
Expand Down
Loading