Can bonuses, such as those received with certain techs (eg inserter stack size), be added by script? And I don't mean to edit the bonuses given by a certain tech. I mean just adding or removing eg x% mining productivity if that script is run.
Any pointers? Or ideas for hacks?
Thanks!
[Solved][0.18.32] Are bonuses addable via a script or any hack?
[Solved][0.18.32] Are bonuses addable via a script or any hack?
Last edited by Impatient on Wed Jun 17, 2020 6:18 pm, edited 2 times in total.
Re: [0.18.32] Are bonuses addable via a scirpt?
https://lua-api.factorio.com/latest/Lua ... size_bonus #LuaForce.inserter_stack_size_bonusImpatient wrote: Wed Jun 17, 2020 6:08 pm Can bonuses, such as those received with certain techs (eg inserter stack size), be added by script? And I don't mean to edit the bonuses given by a certain tech. I mean just adding or removing eg x% mining productivity if that script is run.
Any pointers?
https://lua-api.factorio.com/latest/Lua ... city_bonus #LuaForce.stack_inserter_capacity_bonus
https://lua-api.factorio.com/latest/Lua ... vity_bonus #LuaForce.mining_drill_productivity_bonus
Code: Select all
/c
local force = game.player.force
force.mining_drill_productivity_bonus = 2