Types/EffectTypeLimitation: Difference between revisions
Jump to navigation
Jump to search
(0.18.21) |
(Moved note on extremely fast machine speed to Prototype/CraftingMachine) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
A [[Types/table|list]] of module effects or just one module effect as a string. Modules with other effects cannot be used on the machine. This means that both effects from modules and from surrounding beacons are restricted to the listed effects | A [[Types/table|list]] of module effects or just one module effect as a string. Modules with other effects cannot be used on the machine. This means that both effects from modules and from surrounding beacons are restricted to the listed effects. | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 26: | Line 26: | ||
allowed_effects = "speed" | allowed_effects = "speed" | ||
</pre> | </pre> | ||
{{Prototype property type usage|{{FULLPAGENAME}}}} |
Latest revision as of 16:18, 17 June 2022
A list of module effects or just one module effect as a string. Modules with other effects cannot be used on the machine. This means that both effects from modules and from surrounding beacons are restricted to the listed effects.
Value | Module type |
---|---|
speed | Modules that increase or decrease the machine's speed. |
productivity | Modules that make the machine produce bonus items. |
consumption | Modules that increase or decrease the machine's energy consumption. |
pollution | Modules that make the machine produce more or less pollution. |
Example: (allows all module types)
allowed_effects = {"speed", "productivity", "consumption", "pollution"}
Allows only speed affecting modules:
allowed_effects = "speed"