Prototype/Tool: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added prototype type to page)
(0.17)
Line 6: Line 6:
== Extensions ==
== Extensions ==
* [[Prototype/Armor]] '''armor'''
* [[Prototype/Armor]] '''armor'''
* [[Prototype/MiningTool]] '''mining-tool'''
* [[Prototype/MiningTool]] '''mining-tool''' (for migration, cannot be used)
* [[Prototype/RepairTool]] '''repair-tool'''
* [[Prototype/RepairTool]] '''repair-tool'''


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


Line 15: Line 15:
'''Type''': [[Types/double]]
'''Type''': [[Types/double]]


Must be positive.
Must be positive. Mandatory if <code>infinite</code> is false.
 
== Optional properties ==


=== durability_description_key ===
=== durability_description_key ===
Line 28: Line 26:


'''Default''': "description.durability-value"
'''Default''': "description.durability-value"
=== infinite ===
'''Type''': [[Types/bool]]
'''Default''': true

Revision as of 19:21, 11 April 2019

Basics

Prototype type: tool

Items with a "durability". Used for science packs. Extends Prototype/Item.

Extensions

Optional properties

This prototype inherits all the properties from Prototype/Item.

durability

Type: Types/double

Must be positive. Mandatory if infinite is false.

durability_description_key

Type: Types/string

Default: "description.durability-key"

durability_description_value

Type: Types/string

Default: "description.durability-value"

infinite

Type: Types/bool

Default: true