Prototype/Equipment: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Extends Prototype.)
Line 14: Line 14:
'''Type''': [[Types/table]] of [[Types/string]]
'''Type''': [[Types/table]] of [[Types/string]]


An array of equipment-category names.
An array of equipment-category names. Only equipment with this category can be inserted into the grid.


=== energy_source ===
=== energy_source ===

Revision as of 15:18, 28 July 2018

Basics

An equipment module. Extends Prototype.

Mandatory properties

Inherits all properties from Prototype.

sprite

Type: Types/Sprite

shape

Type: Types/EquipmentShape

categories

Type: Types/table of Types/string

An array of equipment-category names. Only equipment with this category can be inserted into the grid.

energy_source

Type: Types/EnergySource

Must be an electric energy source.

Optional properties

ability_icon

Type: Types/Sprite

take_result

Type: Types/string

Default: name of the prototype

background_color

Type: Types/Color