Prototype/Tool: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "== Basics == Items with a "durability". Extends Prototype/Item. == Usage in base == * Science packs == Mandatory properties == This prototype inherits all the proper...")
 
(added extensions)
Line 1: Line 1:
== Basics ==
== Basics ==
Items with a "durability". Extends [[Prototype/Item]].
Items with a "durability". Used for [[science pack]]s. Extends [[Prototype/Item]].


== Usage in base ==
== Extensions ==
* [[Science pack]]s
* [[Prototype/Armor]] '''armor'''
* [[Prototype/MiningTool]] '''mining-tool'''
* [[Prototype/RepairTool]] '''repair-tool'''


== Mandatory properties ==
== Mandatory properties ==

Revision as of 15:20, 21 January 2019

Basics

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

Extensions

Mandatory properties

This prototype inherits all the properties from Prototype/Item.

durability

Type: Types/double

Must be positive.

Optional properties

durability_description_key

Type: Types/string

Default: "description.durability-key"

durability_description_value

Type: Types/string

Default: "description.durability-value"