Types/EffectTypeLimitation: Difference between revisions
Jump to navigation
Jump to search
m (Bilka moved page Types/AllowedEffects to Types/EffectTypeLimitation: renamed class?) |
(0.18.21) |
||
Line 1: | Line 1: | ||
A list of module effects. 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. If <code>allowed_effects</code> is set to <code>nil</code>, the machine cannot be affected by modules or beacons. | 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. If <code>allowed_effects</code> is set to <code>nil</code>, the machine cannot be affected by modules or beacons. | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 20: | Line 20: | ||
Example: (allows all module types) | Example: (allows all module types) | ||
<pre> | <pre> | ||
{"speed", "productivity", "consumption", "pollution"} | allowed_effects = {"speed", "productivity", "consumption", "pollution"} | ||
</pre> | |||
Allows only speed affecting modules: | |||
<pre> | |||
allowed_effects = "speed" | |||
</pre> | </pre> |
Revision as of 15:26, 29 April 2020
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. If allowed_effects
is set to nil
, the machine cannot be affected by modules or beacons.
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"