In other languages:

Prototype/Lab: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page. Need to confirm if allowed_effects exists or not.)
 
No edit summary
Line 1: Line 1:
{{Languages}}
== Basics ==
== Basics ==
A [[lab]]. Based on [[Prototype/EntityWithHealth]].
A [[lab]]. Based on [[Prototype/EntityWithHealth]].

Revision as of 20:40, 26 October 2014

Basics

A lab. Based on Prototype/EntityWithHealth.

Properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

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.

energy_usage

Type: Types/EnergyPower

The amount of energy this lab uses.

inputs

Type: List of Types/string

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

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

inputs = {"science-pack-1", "science-pack-2", "science-pack-3", "alien-science-pack"}

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

module_slots

Type: Types/unsigned

The number of module slots.

allowed_effects?

Type: Types/AllowedEffects

The module effects that are allowed to be used with this lab.

Unknown whether this is actually implemented for labs.