Page 1 of 1
[Solved] Immunizing crafting machines against beacon buffs
Posted: Thu Feb 01, 2018 3:47 pm
by Impatient
Hi,
is there a way to immunize a crafting machine against receiving buffs from beacons? In other words: I don't want a crafting machine (eg an electric furnace) to receive buffs from nearby beacons.
Thanks!
Re: Immunizing crafting machines against beacon buffs
Posted: Thu Feb 01, 2018 4:00 pm
by Impatient
In the prototype definition for the electric furnace, I found the property "allowed_effects".
Code: Select all
allowed_effects = {"consumption", "speed", "productivity", "pollution"},
It is also documented in the modding API:
https://wiki.factorio.com/Prototype/Cra ... ed_effects
https://wiki.factorio.com/Types/AllowedEffects
But still ... does this property affect buffs from modules in the machine, buffs from beacons or both?
Thanks!
Re: Immunizing crafting machines against beacon buffs
Posted: Thu Feb 01, 2018 4:05 pm
by Bilka
According to
viewtopic.php?p=339361#p339361 setting allowed_effects to nil should prevent the machine from getting affected by beacons
Re: Immunizing crafting machines against beacon buffs
Posted: Thu Feb 01, 2018 4:10 pm
by Impatient
Thank you. Question answered.
The information, that "allowed_effects" affects module slots and beacon buffs and that setting it to nil stops both would be a nice addition for this API documentation page i guess:
https://wiki.factorio.com/Types/AllowedEffects