MegaMek / megamek

MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map.
http://www.megamek.org
GNU General Public License v2.0
292 stars 280 forks source link

ASFs can use plasma rifles for strafing runs #5232

Open EnbyMyu opened 5 months ago

EnbyMyu commented 5 months ago

Environment

MekHQ/MegaMek 0.49.18 Java Vendor: Eclipse Adoptium Java Version: 21 Win11 23H2

Description

Aerospace Fighters with plasma rifles can use them for strafing runs. Presumably since they are classified as 'energy' weapons. But being ammo-dependent I was told to open a bug report.

To reproduce, create an ASF with plasma rifles and perform a strafing run as normal.

image

Files

plasmastrafe.sav.gz

Team name is "The Wrecking Belles"

Sleet01 commented 5 months ago

There's probably also an AS conversion issue for these; if I don't pick this up, whoever does will want to make sure that Plasma Rifles properly prevent the ENE keyword for AS conversion.

RaozSpaz commented 5 months ago

Wouldnt they still get the ENE tag as the Plasma Rifle ammo is inert.

Sleet01 commented 5 months ago

Wouldnt they still get the ENE tag as the Plasma Rifle ammo is inert.

Negatory:


Energy (ENE)

A unit with this ability does not rely on ammunition-fed 
weaponry or fuels, ...

Conversion: This special is assigned to any non-infantry 
unit type that carries no explosive components. Explosive 
components that disqualify units from receiving this ability 
include all weapons that use ammunition (including
... 
plasma weapons....```
RaozSpaz commented 5 months ago

Its weird that plasma weapons would be included under a list of explosive components. I thought plasma ammo didn't explode. Nor the weapon. That might be a rules question.

[Apologies for getting off topic]

Sleet01 commented 5 months ago

Its weird that plasma weapons would be included under a list of explosive components. I thought plasma ammo didn't explode. Nor the weapon. That might be a rules question.

[Apologies for getting off topic]

Yeah, it was a surprise to me initially, too. I actually tracked one of the devs down on another server and got it confirmed, while looking at some other AS conversion code.