Page 1 of 1

Expose reversing_power_modifier

Posted: Fri Feb 13, 2026 12:40 am
by benlove007
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.

Re: Expose reversing_power_modifier

Posted: Mon Feb 23, 2026 2:47 pm
by Rseding91
Ok, I've added it for 2.1.