Skip to content

Commit

Permalink
Merge pull request #4762 from Sleet01/fix_1152_RFE_add_ada_air_defens…
Browse files Browse the repository at this point in the history
…e_arrow_IV_munition

Welp, off we go. Fix #1552
  • Loading branch information
NickAragua authored Sep 16, 2023
2 parents 7c1f8bf + edc52fb commit 99ac2dd
Show file tree
Hide file tree
Showing 81 changed files with 2,359 additions and 1,989 deletions.
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

0 comments on commit 99ac2dd

Please sign in to comment.