Prototype/Reactor: Difference between revisions
(Set prototype parent) |
(Converted to SMW format) |
||
Line 1: | Line 1: | ||
{{Prototype parent|Prototype/EntityWithHealth}} | {{Prototype parent|Prototype/EntityWithHealth}} | ||
A [[nuclear reactor|reactor]]. | |||
{{Prototype TOC|reactor}} | |||
Prototype | |||
== Mandatory properties == | == Mandatory properties == | ||
This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | This prototype inherits all the properties from [[Prototype/EntityWithHealth]]. | ||
{{Prototype property|connection_patches_connected|[[Types/SpriteVariations|SpriteVariations]]}} | |||
Must have 12 variations. | Must have 12 variations. | ||
{{Prototype property|connection_patches_disconnected|[[Types/SpriteVariations|SpriteVariations]]}} | |||
Must have 12 variations. | Must have 12 variations. | ||
{{Prototype property|working_light_picture|[[Types/Sprite|Sprite]]}} | |||
{{Prototype property|heat_buffer|[[Types/HeatBuffer|HeatBuffer]]}} | |||
{{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}} | |||
May not be a heat energy source. | May not be a heat energy source. | ||
{{Prototype property|consumption|[[Types/Energy|Energy]]}} | |||
== Optional properties == | == Optional properties == | ||
{{Prototype property|lower_layer_picture|[[Types/Sprite|Sprite]]|optional=true}} | |||
{{Prototype property|picture|[[Types/Sprite|Sprite]]|optional=true}} | |||
{{Prototype property|light|[[Types/LightDefinition|LightDefinition]]|optional=true}} | |||
{{Prototype property|meltdown_action|[[Types/Trigger|Trigger]]|optional=true}} | |||
The action is triggered when the reactor dies (is destroyed) at over 90% of max temperature. | The action is triggered when the reactor dies (is destroyed) at over 90% of max temperature. | ||
{{Prototype property|neighbour_bonus|[[Types/double|double]]|1|optional=true}} | |||
= | |||
{{Prototype property|neighbour_collision_increase|[[Types/double|double]]|0.25|optional=true}} | |||
The collision box of a reactor is increased by this on the sides where it connects to another reactor. Cannot be negative. | The collision box of a reactor is increased by this on the sides where it connects to another reactor. Cannot be negative. | ||
{{Prototype property|scale_energy_usage|[[Types/bool|bool]]|false|optional=true}} | |||
{{Prototype property|use_fuel_glow_color|[[Types/bool|bool]]|false|optional=true}} | |||
Whether the reactor should use [[Prototype/Item#fuel_glow_color|fuel_glow_color]] from the fuel item prototype as light color and tint for <code>working_light_picture</code>.[https://forums.factorio.com/71121] | Whether the reactor should use [[Prototype/Item#fuel_glow_color|fuel_glow_color]] from the fuel item prototype as light color and tint for <code>working_light_picture</code>.[https://forums.factorio.com/71121] | ||
{{Prototype property|default_fuel_glow_color|[[Types/Color|Color]]|<nowiki>{1, 1, 1, 1} (white)</nowiki>|optional=true}} | |||
When <code>use_fuel_glow_color</code> is true, this is the color used as <code>working_light_picture</code> tint for fuels that don't have glow color defined. | When <code>use_fuel_glow_color</code> is true, this is the color used as <code>working_light_picture</code> tint for fuels that don't have glow color defined. |
Revision as of 17:10, 5 August 2019
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Reactor
A reactor.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
connection_patches_connected
Type: SpriteVariations
Must have 12 variations.
connection_patches_disconnected
Type: SpriteVariations
Must have 12 variations.
working_light_picture
Type: Sprite
heat_buffer
Type: HeatBuffer
energy_source
Type: EnergySource
May not be a heat energy source.
consumption
Type: Energy
Optional properties
lower_layer_picture
Type: Sprite
picture
Type: Sprite
light
Type: LightDefinition
meltdown_action
Type: Trigger
The action is triggered when the reactor dies (is destroyed) at over 90% of max temperature.
neighbour_bonus
Type: double
Default: 1
neighbour_collision_increase
Type: double
Default: 0.25
The collision box of a reactor is increased by this on the sides where it connects to another reactor. Cannot be negative.
scale_energy_usage
Type: bool
Default: false
use_fuel_glow_color
Type: bool
Default: false
Whether the reactor should use fuel_glow_color from the fuel item prototype as light color and tint for working_light_picture
.[1]
default_fuel_glow_color
Type: Color
Default: {1, 1, 1, 1} (white)
When use_fuel_glow_color
is true, this is the color used as working_light_picture
tint for fuels that don't have glow color defined.