Types/EffectTypeLimitation: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (Bilka moved page Types/AllowedEffects to Types/EffectTypeLimitation: renamed class?)
(Removed old prototype docs)
 
(8 intermediate revisions by 3 users not shown)
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.
<div class="stub"><p>'''The prototype docs have moved to a new website with an improved format.''' This documentation page can now be found here: [https://lua-api.factorio.com/latest/types/EffectTypeLimitation.html https://lua-api.factorio.com/latest/types/EffectTypeLimitation.html]


{| class="wikitable"
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
! 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)
<pre>
{"speed", "productivity", "consumption", "pollution"}
</pre>

Latest revision as of 14:32, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/types/EffectTypeLimitation.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.