Railgun targeting improvement

by Konage

Small tweak that makes railguns vs huge asteroids more reliable by disabling the deprioritization of damaged huge asteroids by the Factorio targeting algorithm.

Tweaks
9 days ago
2.0
82
Combat Enemies Cheats
Owner:
Konage
Source:
N/A
Homepage:
N/A
License:
The Unlicense (Public Domain)
Created:
9 days ago
Latest Version:
0.1.2 (9 days ago)
Factorio version:
2.0
Downloaded by:
82 users

One "issue" of the targeting algorithm is with railguns vs huge asteroids: The algorithm deprioritizes asteroids that have taken damage (typically by explosive rockets for promethium ships). Once every tens of thousands of huge asteroid kills, this can lead to one huge asteroid not getting shot and eventually it destroys your ship. This small tweak changes the algorithm so that railguns ignore current health which prevents the targeting algorithm from trying to ... not waste the maximum damage a railgun shot can theoretically inflict and instead prioritizes asteroids closer to the ship more.