LuaEntity::productivity_bonus read
Posted: Sat Apr 11, 2020 6:01 am
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!
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!