Page 1 of 1

Adding "bonus" properties to LuaRecipe

Posted: Sat Jun 28, 2025 5:20 pm
by Galdoc
tl;dr
Add both 'bonus' (additive bonus) and 'multiplier' (multiplicative bonus) bonuses to LuaRecipe for the five categories (productivity, consumption, speed, quality and pollution) -- or as many as you're willing to <3
Why
Currently, LuaRecipe has the productivity_bonus property. I'd like it if, at runtime, a script could set the other four categories (consumption, speed, quality and pollution) of bonuses as well. It'd also be nice to have a seperate group of multipliers for the same.

The reason I'd like this is because I would like to, without having to resort to technology hacks or invisible beacons or whatever else, be able to create a minigame inside of Factorio where recipes could be enhanced in granular, exclusive ways. This would dovetail with the existing module/becaon system.

Re: Adding "bonus" properties to LuaRecipe

Posted: Sat Jun 28, 2025 5:47 pm
by Stringweasel
+1 This would be useful for space exploration too. Even if its similar rto ProductivityBonus Tech Effect.

Re: Adding "bonus" properties to LuaRecipe

Posted: Sat Jun 28, 2025 5:56 pm
by Stringweasel
Related
116056
128297

Re: Adding "bonus" properties to LuaRecipe

Posted: Sun Jun 29, 2025 10:08 pm
by protocol_1903
+1, i see this being extremely useful in mods with dynamic recipes so you don't need to hotswap recipes/assemblers/beacons when a change is made