Expose reversing_power_modifier
Posted: Fri Feb 13, 2026 12:40 am
LocomotivePrototype.reversing_power_modifier is not exposed via LuaEntityPrototype at runtime.
I would like to read this value at runtime to support arbitrary custom locomotives when calculating how much energy was actually consumed during a tick while a train is reversing manually.
I would like to read this value at runtime to support arbitrary custom locomotives when calculating how much energy was actually consumed during a tick while a train is reversing manually.