Expose reversing_power_modifier

benlove007
Burner Inserter
Burner Inserter
Posts: 12
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: 16593
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.
Bilka
Factorio Staff
Factorio Staff
Posts: 3705
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Expose reversing_power_modifier

Post by Bilka »

Backported to 2.0.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Implemented mod requests”