Make production statistics graph editable
Posted: Thu Sep 30, 2021 9:01 pm
I'm trying a different approach, maybe I can fix this problem without requesting anything.
I'll leave this here, maybe it's easy enough to implement and someone might need it in the future
I have the following problem:
I have a capsule that has a low cooldown, I can't change the cooldown because of other reasons that aren't important.
When the capsule gets used the player gets a buff.
When a buff is active the capsule is used without giving a buff and the player gets the same capsule put into their inventory.
This is to simulate the capsule not being used as long as there is a buff active.
This causes the following problem:
The production consumption statistic automatically counts up every time a capsule is used.
I want to subtract one from the last time a value was added up to the current point in time.
This is probably only one tick, because I have a script effect for the capsule.
set_output_count only edits the total count.
https://lua-api.factorio.com/latest/Lua ... tput_count
I'll leave this here, maybe it's easy enough to implement and someone might need it in the future
I have the following problem:
I have a capsule that has a low cooldown, I can't change the cooldown because of other reasons that aren't important.
When the capsule gets used the player gets a buff.
When a buff is active the capsule is used without giving a buff and the player gets the same capsule put into their inventory.
This is to simulate the capsule not being used as long as there is a buff active.
This causes the following problem:
The production consumption statistic automatically counts up every time a capsule is used.
I want to subtract one from the last time a value was added up to the current point in time.
This is probably only one tick, because I have a script effect for the capsule.
set_output_count only edits the total count.
https://lua-api.factorio.com/latest/Lua ... tput_count