Prototype/FlyingRobot: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Added prototype type to page)
(0.17)
Line 11: Line 11:
** [[Prototype/LogisticRobot]] '''logistic-robot'''
** [[Prototype/LogisticRobot]] '''logistic-robot'''


== Properties ==
== Mandatory properties ==
Inherits all properties from [[Prototype/EntityWithHealth]].
=== speed ===
=== speed ===
'''Type''': [[Types/double]]
'''Type''': [[Types/double]]
== Optional properties ==


=== max_energy ===
=== max_energy ===

Revision as of 14:53, 5 March 2019

Basics

This type is abstract and cannot be created directly.

Abstract base for construcion/logistics and combat robots. Extends the Prototype/EntityWithHealth

Extensions

Mandatory properties

Inherits all properties from Prototype/EntityWithHealth.

speed

Type: Types/double

Optional properties

max_energy

Type: Types/Energy

Default: 0

How much energy can be stored in the batteries.

energy_per_move

Type: Types/Energy

Default: 0

How much does it cost to move 1 meter.

energy_per_tick

Type: Types/Energy

Default: 0

min_to_charge

Type: Types/float

Default: 0.2

The robot will always go to charge when it has less energy than this.

max_to_charge

Type: Types/float

Default: 0.95

The robot will never go to charge when it has more energy than this.

speed_multiplier_when_out_of_energy

Type: Types/float

Default: 0

Some robots simply crash, some slowdown but keep going. 0 means crash.