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

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Impatient
Filter Inserter
Filter Inserter
Posts: 883
Joined: Sun Mar 20, 2016 2:51 am
Contact:

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

Post 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!
Last edited by Impatient on Wed Jun 17, 2020 6:18 pm, edited 2 times in total.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

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

Post 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

User avatar
Impatient
Filter Inserter
Filter Inserter
Posts: 883
Joined: Sun Mar 20, 2016 2:51 am
Contact:

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

Post by Impatient »

Thanks! :thumbsup: :-D

Post Reply

Return to “Modding help”