Prototype/FlyingRobot: Difference between revisions
(Converted to SMW format) |
(0.17.72: max_speed) |
||
Line 16: | Line 16: | ||
== Optional properties == | == Optional properties == | ||
{{Prototype property|max_speed|[[Types/double|double]]|max double|optional=true}} | |||
The maximum speed of the robot. Useful to limit the impact of [[worker robot speed (research)]]. | |||
{{Prototype property|max_energy|[[Types/Energy|Energy]]|0|optional=true}} | {{Prototype property|max_energy|[[Types/Energy|Energy]]|0|optional=true}} | ||
How much energy can be stored in the batteries. | How much energy can be stored in the batteries. | ||
{{Prototype property|energy_per_move|[[Types/Energy|Energy]]|0|optional=true}} | {{Prototype property|energy_per_move|[[Types/Energy|Energy]]|0|optional=true}} |
Revision as of 16:20, 22 October 2019
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/FlyingRobot
Abstract base for construcion/logistics and combat robots.
Extensions
- Prototype/CombatRobot combat-robot
- Prototype/RobotWithLogisticInterface <abstract>
- Prototype/ConstructionRobot construction-robot
- Prototype/LogisticRobot logistic-robot
Mandatory properties
Inherits all properties from Prototype/EntityWithHealth.
speed
Type: double
Optional properties
max_speed
Type: double
Default: max double
The maximum speed of the robot. Useful to limit the impact of worker robot speed (research).
max_energy
Type: Energy
Default: 0
How much energy can be stored in the batteries.
energy_per_move
Type: Energy
Default: 0
How much does it cost to move 1 meter.
energy_per_tick
Type: Energy
Default: 0
min_to_charge
Type: float
Default: 0.2
The robot will always go to charge when it has less energy than this.
max_to_charge
Type: 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: float
Default: 0
Some robots simply crash, some slowdown but keep going. 0 means crash.