Page 1 of 1

[Solved][0.18.32] Are bonuses addable via a script or any hack?

Posted: Wed Jun 17, 2020 6:08 pm
by Impatient
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!

Re: [0.18.32] Are bonuses addable via a scirpt?

Posted: Wed Jun 17, 2020 6:14 pm
by darkfrei
Impatient 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 ... size_bonus #LuaForce.inserter_stack_size_bonus
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

Re: [0.18.32] Are bonuses addable via a script or any hack?

Posted: Wed Jun 17, 2020 6:17 pm
by Impatient
Thanks! :thumbsup: :-D