Prototype/Module: Difference between revisions
Jump to navigation
Jump to search
(Added prototype type to page) |
(→limitation_message_key: documented "item-limitation." prefix) |
||
Line 28: | Line 28: | ||
'''Type''': [[Types/string]] | '''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. | 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 20:45, 27 May 2019
Basics
Prototype type: module
A module. Extends Prototype/Item.
Mandatory properties
This prototype inherits all the properties from Prototype/Item.
category
Type: Types/string
The name of a module category.
tier
Type: Types/float
effect
Type: Types/Effect
Optional properties
limitation
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.
limitation_message_key
Type: Types/string
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.