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

[RFE] Turret deployment prioritisation for Princess #3361

Open SimonLandmine opened 2 years ago

SimonLandmine commented 2 years ago

This one came out of a conversation on the Discord. At present, as far as the conversation suggested, Princess deploys turrets to any available building, without prioritisation.

The suggestion is to implement some kind of prioritisation order, so that turrets would be deployed to buildings in the following order of preference ...

It might make even more sense if they were deployed in order of weapons load, so that e.g. artillery, AC/20s, Gauss Rifles, and other high damage weapons were deployed first, and thus got the gun emplacements, but that would require turrets to be treated differently to other units when it comes to deployment, rather than being deployed in UnitID order. Additional suggestion is that, during the first round of deployment, any building that already mounts a turret is ignored until all buildings have gained turrets, so that they don't all get stacked onto a single building. But that would be even more complex.

SimonLandmine commented 2 years ago

And alternative, less programmy, suggestion, would be to be able to flag buildings in the Map Editor as being priority locations for Princess to deploy turrets. Once turrets are deployed to those, other buildings would be freely available.

Thom293 commented 2 years ago

I think this is an excellent idea.

To add a comment on this, I just played on the Castle Hill map and the AI deployed the turrets perfectly along the "Wall" surrounding the castle. I had never seen that type of building before, but the AI seemed to use it ok, so perhaps check that type of building to see what flags it has.