Prototype/Equipment: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Changed links going to the redirect Prototype to go to PrototypeBase.)
(Set prototype parent)
Line 1: Line 1:
{{Prototype parent|PrototypeBase}}
== Basics ==
== Basics ==
This type is abstract and cannot be created directly.
This type is abstract and cannot be created directly.

Revision as of 14:48, 24 July 2019

Template:Prototype parent

Basics

This type is abstract and cannot be created directly.

An equipment module. Extends PrototypeBase.

Extensions

Mandatory properties

Inherits all properties from PrototypeBase.

sprite

Type: Types/Sprite

shape

Type: Types/EquipmentShape

categories

Type: Types/table of Types/string

An array of equipment-category names. Sets the category of the quipment. It can only be inserted into grids with the same category.

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