Prototype/Module: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Set prototype parent)
(Converted to SMW format)
Line 1: Line 1:
{{Prototype parent|Prototype/Item}}
{{Prototype parent|Prototype/Item}}
A [[module]].


== Basics ==
{{Prototype TOC|module}}
Prototype type: '''module'''
 
A [[module]]. Extends [[Prototype/Item]].


== Mandatory properties ==
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/Item]].
This prototype inherits all the properties from [[Prototype/Item]].


=== category ===
{{Prototype property|category|[[Types/string|string]]}}
'''Type''': [[Types/string]]
 
The name of a module category.
The name of a module category.


=== tier ===
{{Prototype property|tier|[[Types/uint32|uint32]]}}
'''Type''': [[Types/uint32]]


=== effect ===
{{Prototype property|effect|[[Types/Effect|Effect]]}}
'''Type''': [[Types/Effect]]


== Optional properties ==
== Optional properties ==


=== limitation ===
{{Prototype property|limitation|[[Types/table|table]] of [[Types/string|string]]|optional=true}}
'''Type''': [[Types/table]] of [[Types/string]]
 
Array of recipe names this module can be used on. If empty, the module can be used on all recipes.
Array of recipe names this module can be used on. If empty, the module can be used on all recipes.


=== limitation_message_key ===
{{Prototype property|limitation_message_key|[[Types/string|string]]|optional=true}}
'''Type''': [[Types/string]]
 
Mandatory when <code>limitation</code> is present. The locale key of the message that is shown when the player attempts to use the module on a recipe it can't be used on. The locale key will be prefixed with <code>item-limitation.</code> (the "category" of the locale) by the game.
Mandatory when <code>limitation</code> is present. The locale key of the message that is shown when the player attempts to use the module on a recipe it can't be used on. The locale key will be prefixed with <code>item-limitation.</code> (the "category" of the locale) by the game.

Revision as of 16:01, 26 July 2019

Template:Prototype parent A module.

Template:Prototype TOC

Mandatory properties

This prototype inherits all the properties from Prototype/Item.

Template:Prototype property The name of a module category.

Template:Prototype property

Template:Prototype property

Optional properties

Template:Prototype property Array of recipe names this module can be used on. If empty, the module can be used on all recipes.

Template:Prototype property Mandatory when limitation is present. The locale key of the message that is shown when the player attempts to use the module on a recipe it can't be used on. The locale key will be prefixed with item-limitation. (the "category" of the locale) by the game.