Prototype/Lab: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17)
(→‎inputs: 0.17 example)
Line 34: Line 34:
e.g. for the default lab, this is:
e.g. for the default lab, this is:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
inputs = {"science-pack-1", "science-pack-2", "science-pack-3", "alien-science-pack"}</syntaxhighlight>
inputs = {"automation-science-pack", "logistics-science-pack", "chemical-science-pack", "military-science-pack", "production-science-pack", "utility-science-pack"}</syntaxhighlight>


If a technology requires other types of science packs, it cannot be researched in this lab.
If a technology requires other types of science packs, it cannot be researched in this lab.

Revision as of 05:14, 10 April 2019

Basics

Prototype type: lab

A lab. Based on Prototype/EntityWithHealth.

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

energy_usage

Type: Types/Energy

The amount of energy this lab uses.

energy_source

Type: Types/EnergySource

Defines how this lab gets energy.

on_animation

Type: Types/Animation

The animation that plays when the lab is active.

off_animation

Type: Types/Animation

The animation that plays when the lab is idle.

inputs

Type: Types/table of Types/string

A list of the names of science packs that cane be used in this lab.

e.g. for the default lab, this is:

inputs = {"automation-science-pack", "logistics-science-pack", "chemical-science-pack", "military-science-pack", "production-science-pack", "utility-science-pack"}

If a technology requires other types of science packs, it cannot be researched in this lab.

Optional properties

researching_speed

Type: Types/double

Default: 1

light

Type: Types/LightDefinition


module_specification

Type: Types/ModuleSpecification

The number of module slots.