Page 1 of 1

LuaEntity::productivity_bonus read

Posted: Sat Apr 11, 2020 6:01 am
by raiguard
Currently there is no way that I've found to simply retrieve a crafting machine's current productivity bonus. You can get the crafting speed, but the productivity bonus isn't included with that. Right now the only way to calculate it is to retrieve all of the beacons that are affecting the machine and combine the productivity that they're broadcasting.

The bonus is shown in the crafter's tooltip so the game already calculates it, it's just a matter of exposing it to the API.

Thanks!

Re: LuaEntity::productivity_bonus read

Posted: Sat Apr 11, 2020 9:55 pm
by Rseding91
Ok.

Re: LuaEntity::productivity_bonus read

Posted: Sat Apr 11, 2020 10:21 pm
by raiguard
Sweet! Thank you!