Expose reversing_power_modifier

benlove007
Burner Inserter
Burner Inserter
Posts: 11
Joined: Sat Oct 11, 2025 5:23 pm
Contact:

Expose reversing_power_modifier

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16592
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Expose reversing_power_modifier

Post by Rseding91 »

Ok, I've added it for 2.1.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”