Prototype/Reactor: Difference between revisions
(0.17) |
(0.17.42) |
||
Line 63: | Line 63: | ||
'''Default''': false | '''Default''': false | ||
=== use_fuel_glow_color === | |||
'''Type''': [[Types/bool]] | |||
'''Default''': false | |||
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] | |||
=== default_fuel_glow_color === | |||
'''Type''': [[Types/Color]] | |||
'''Default''': {1, 1, 1, 1} (white) | |||
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 10:02, 22 May 2019
Basics
Prototype type: reactor
A reactor. Extends Prototype/EntityWithHealth.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
connection_patches_connected
Type: Types/SpriteVariations
Must have 12 variations.
connection_patches_disconnected
Type: Types/SpriteVariations
Must have 12 variations.
working_light_picture
Type: Types/Sprite
heat_buffer
Type: Types/HeatBuffer
energy_source
Type: Types/EnergySource
May not be a heat energy source.
consumption
Type: Types/Energy
Optional properties
lower_layer_picture
Type: Types/Sprite
picture
Type: Types/Sprite
light
Type: Types/LightDefinition
meltdown_action
Type: Types/Trigger
The action is triggered when the reactor dies (is destroyed) at over 90% of max temperature.
neighbour_bonus
Type: Types/double
Default: 1
neighbour_collision_increase
Type: Types/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: Types/bool
Default: false
use_fuel_glow_color
Type: Types/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: Types/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.