add support to refuel trains when low on fuel #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a new signal ltn-cleanup-refuel-stop and a min-fuel setting.
When a delivery completes and min-fuel > 0 the trains remaining fuel is checked. If any locomotive is below min-fuel then a refueling station on the same surface matching the network id and train limit is searched for and the train send to refuel.
If no refuel station can be found a warning is given and the train continues till it runs out of fuel.
Note: I enabled the feature by default because when refueling trains at the depot they should never get into a low fuel situation. So no harm is done if refuel stations aren't used. But if refueling at the depot runs out of fuel you get an extra early warning about it which I find kind of nice.