Ok first off i'm a complete scrub with lua, only started fiddling this week, and i'm stuck.
I want the time to change from the current form; recipe time/(speed * speed bonus) = production time, to (recipe time* 2^(number of productivity modules in machine))/(speed*speed bonus). The reason i wish to change it is because even if i figure out how to modify the speed bonus based on how many recipes are in the machine, it will make speed modules completely obsolete when even a tier 3 module will only reduce the time by 1/16th with 4 productivity modules in effect.
Anyone got any idea how/if this can be done?
Can you change the formula for crafting time?
Re: Can you change the formula for crafting time?
I don't think you can.
Re: Can you change the formula for crafting time?
Well fuck guess that's not an option :/
Would i be able to do something more like this instead?
-create events for module inserted and module removed
-add an effect similar to being under a beacon to the assembler
-have effect modify speed to match 2^n, where n is some new variable attached to the machine and increased by 1 for each productivity module?
Would i be able to do something more like this instead?
-create events for module inserted and module removed
-add an effect similar to being under a beacon to the assembler
-have effect modify speed to match 2^n, where n is some new variable attached to the machine and increased by 1 for each productivity module?
Re: Can you change the formula for crafting time?
Sorry for thread-jacking, but I have a very similar question, also on the topic of balancing productivity modules.
I want to change the formula for computing power consumption for a machine that has modules that modify the consumption.
The current formula is:
PowerConsumption = BasePower * (1 + PowerModifier)
I want to change it to:
PowerConsumption = BasePower * exp (PowerModifier)
(Where PowerModifier is the sum of the modifiers of all modules)
Is there some way to do it?
(I think this should be changed in the base game, but as long as that's not done...)
I want to change the formula for computing power consumption for a machine that has modules that modify the consumption.
The current formula is:
PowerConsumption = BasePower * (1 + PowerModifier)
I want to change it to:
PowerConsumption = BasePower * exp (PowerModifier)
(Where PowerModifier is the sum of the modifiers of all modules)
Is there some way to do it?
(I think this should be changed in the base game, but as long as that's not done...)