jdgwf / battletech-tools

BattleTech and Alpha Strike mech utilities
https://jdgwf.github.io/battletech-tools/
MIT License
21 stars 9 forks source link

Alpha Strike “Available Bonuses” are allowing invalid Ground Formation Types” #40

Open OftKilted opened 9 months ago

OftKilted commented 9 months ago

When creating a force the “available ground formation bonuses” aren’t validating/filtering out invalid formation options.

e.g. example to replicate issue:

Select “Inner Sphere Urban Lance” from the ‘Quickly Add Force Pack’ option.

This adds: Inner Sphere Urban Lance Victor VTR-9B (SZ:4 MV:8”j SKIRMISHER) Enforcer ENF-4R (SZ:2 MV:8”j SKIRMISHER) Hunchback HBK-4G (SZ:2 MV:8” JUGGERNAUT) Raven RVN-3M (SZ: 1, move 12”, MISSILE BOAT)

Select “available bonuses”: Among the options are: Light Recon Recon

Light Recon requires that all units be “Size 1” , have the Scout role and a minimum move of 12”.

The only mech that can move 12” is the Raven. Which is a Missile Boat, not a Scout.

Recon requires all have a move of 10” and be Scout or Striker