mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 21:04:14 +00:00
ccadd7f6a8
## Description: Nations will prefer to target their nukes at structures. This updates the existing logic, which attempts ten times to randomly select a coordinate 15 tiles inside the border, to instead generate a list of ten random tiles in addition to a list of all of the tiles of relevant structures. The two lists are concatenated to create a set of tile candidates. These candidates are scored, and the tile with the highest score, if one is found, is nuked. The scoring function considers three factors: 1. Damage potential: values of structures with 25 tiles of the target tile. 2. Distance from silo to target (hang time). 3. Recently nuked locations.  Fixes #471 ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: fake.neo --------- Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>