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 286 forks source link

49.19.1 AoE damage doing TOO much to infantry #5904

Open BoloNike opened 2 months ago

BoloNike commented 2 months ago

Environment

MegaMek v0.49.19.1 Build Date: 2024-05-10T20:11:07.447429751 Today: 2024-08-14 Origin Project: MegaMek Java Vendor: Eclipse Adoptium Java Version: 11.0.24 Platform: Windows 10 10.0 (amd64) System Locale: en_US Total memory available to MegaMek: 16 GB

Description

Looks like Artillery (AoE) is doing too much damage to CI. When a standard HE Arrow IV round (20/10) hit one tile off from an exposed CI platoon it did 4 groupings totaling 60 damage. Calculation should be only 40 max for one tile off. 10 ->(divide by .5 for AoE) -> 20 -> (double for in open terrain) -> 40.

Looking at the (20,20,10,10) grouping it seems like it is calculating the damage to CI before terrain effects (10->20) then dividing to damage groupings of 5 (4x5) then applying BOTH the AoE effect and the Open Terrain effect (5->10->20). Conjecture that last two are only 10 (and not showing open effect as applying) as ghosts cannot be in open terrain.

Files

MegaMek log megamek.log

Pictures

Arrow IV Standard HE firing solutions. image Weapons phase results image

gsparks3 commented 2 months ago

Save from start of firing phase for testing and reproduction (0.49.19.1): ae_vs_ci_testing.sav.gz

image

Thumper Cannon does 5 AE damage, which is doubled to 10, then each cluster of 5 damage from that 10 is doubled twice to 20, doing a total of 40 damage. One too many doublings.