Oscillating Modules

by juh9870

Spices up your factorio experience by making once static module effects to fluctuate over time (customizable) Default patterns include: - Sine Wave - Module effect gradually oscillates between 200% and 0% over the course of 100 seconds - Toggle - Module effect toggles instantly between 200% and 0% every minute - Decay - Module effect starts at 300% but halves every minute for 10 minutes until stopping at 5% effect after an hour - Custom - define your own effects!

Tweaks
2 days ago
2.0
3
Factorio: Space Age Icon Space Age Mod
Manufacturing
Owner:
juh9870
Source:
https://github.com/juh9870/oscillatin...
Homepage:
https://github.com/juh9870/oscillatin...
License:
GNU GPLv3
Created:
2 days ago
Latest Version:
1.0.0 (2 days ago)
Factorio version:
2.0
Downloaded by:
3 users

Spices up your factorio experience by making once static module effects to fluctuate over time (customizable)
Default patterns include:
- Sine Wave - Module effect gradually oscillates between 200% and 0% over the course of 100 seconds
- Toggle - Module effect toggles instantly between 200% and 0% every minute
- Decay - Module effect starts at 300% but halves every minute for 10 minutes until stopping at 5% effect after an hour
- Custom - define your own effects!
- Your own? - Got a cool custom preset? Share it in the discussion so we can expand the default presets list

Technical

Custom module effects and step duration use lua for formulas. They have access to all of the lua syntax, all functions from math module are already in-scope directly (e.g can use sin directly, not math.sin), and variable x indicates the step count.

Should be compatible with most modded modules, please let me know if you encounter any incompatibilities.