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
297 stars 287 forks source link

[49.19] Bug? RFE? Nuclear Missiles fired at ground targets from Aerospace Units #5438

Open Nehvar opened 6 months ago

Nehvar commented 6 months ago

When you enable the advanced aerospace rule for nuclear weapons you can equip ASF bomb slots with Alamo missiles and AR10's/Whiteshark launchers with Santa Anna missiles. While equipped with these weapons an Aerospace unit on a ground map can fire them at targets on that ground map, including other Aerospace units. Rather than use the rules for nuclear weapons, however, the rules for Aerospace engagements are used resulting in these attacks doing capital damage to a single location.

Screen images of targeting information for these weapons.

01_alamo 03_alamo 05_santaanna

Screen images of firing results.

02_alamo 04_alamo 06_santaanna

As you can see they did capital-scale damage to the targets instead of nuclear super-happy fun time. I am unsure if this is a bug. If not, it's an RFE.

Saves and logs from test runs after firing.

Nukes_Alamo_Ground_Post.sav.gz Nukes_Alamo_Ground.log

Nukes_Alamo_Air_Post.sav.gz Nukes_Alamo_Air.log

Nukes_SantaAnna_Ground_Post.sav.gz Nukes_SantaAnna_Ground.log

gsparks3 commented 6 months ago

Yeah, I think this one is a "feature not fully implemented" - I believe whoever implemented the aerospace nukes originally set them up for space maps, and in atmosphere they (incorrectly) reuse that functionality. Probably not a high priority fix, but a perfectly fair RFE, since the aim is to have all the tabletop rules implemented eventually.

Sleet01 commented 5 months ago

Since I'm going to remove Princess's ability to use these weapons, I can at least make them fun for the players...

HammerGS commented 5 months ago

Since I'm going to remove Princess's ability to use these weapons, I can at least make them fun for the players...

Don't you mean give her the option to use them :)

I mean can you say no that that face. image

Sleet01 commented 5 months ago

Sshh, I'm using reverse psychology.... robotology?

gsparks3 commented 5 months ago

Susan Calvin says it's "robopsychology".

Sleet01 commented 4 months ago

This will be tougher than I expected: there is existing (probably broken) code for handling Alamo bomb shots as artillery, but only when fired as ground-to-ground shots (I think this is actually improperly-applied CapMissile handling?). In fact, RAW, Alamo "bombs" should fire like AAA or other missiles against air targets, and like Arrow IV indirect shots against ground and hex targets. I think this means we need to either implement a separate handler for Alamo shots, or move the Cap Damage / Nuclear Blast decision deeper into the existing attack handling code rather than in the Capital Missile attack handler.