Prototype/Reactor: Difference between revisions
(neighbour_bonus can be negative (leads to funky behaviour, but it is possible and applied), scale_energy_usage has to be "true" for the scaling behaviour) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
{{Prototype property|heat_buffer|[[Types/HeatBuffer|HeatBuffer]]}} | {{Prototype property|heat_buffer|[[Types/HeatBuffer|HeatBuffer]]}} | ||
The energy output as heat | The energy output as heat. | ||
{{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}} | {{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}} | ||
May not be a heat energy source. | May not be a heat energy source. | ||
The input energy source, in vanilla it is a burner energy source. | |||
{{Prototype property|consumption|[[Types/Energy|Energy]]}} | {{Prototype property|consumption|[[Types/Energy|Energy]]}} | ||
How | How much energy this reactor can consume (from the input energy source) and then output as heat. | ||
== Optional properties == | == Optional properties == | ||
Line 47: | Line 48: | ||
{{Prototype property|scale_energy_usage|[[Types/bool|bool]]|false|optional=true}} | {{Prototype property|scale_energy_usage|[[Types/bool|bool]]|false|optional=true}} | ||
When this is true, the reactor will stop consuming fuel/energy when the temperature has reached the maximum. | |||
{{Prototype property|use_fuel_glow_color|[[Types/bool|bool]]|false|optional=true}} | {{Prototype property|use_fuel_glow_color|[[Types/bool|bool]]|false|optional=true}} |
Latest revision as of 14:55, 24 March 2022
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Reactor
A reactor.
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithOwner.
working_light_picture
Type: Sprite
heat_buffer
Type: HeatBuffer
The energy output as heat.
energy_source
Type: EnergySource
May not be a heat energy source.
The input energy source, in vanilla it is a burner energy source.
consumption
Type: Energy
How much energy this reactor can consume (from the input energy source) and then output as heat.
Optional properties
connection_patches_connected
Type: SpriteVariations
If defined, number of variations must be at least equal to count of connections defined in heat_buffer
. Each variation represents connected heat buffer connection of corresponding index.
connection_patches_disconnected
Type: SpriteVariations
If defined, number of variations must be at least equal to count of connections defined in heat_buffer
. Each variation represents unconnected heat buffer connection of corresponding index.
heat_connection_patches_connected
Type: SpriteVariations
If defined, number of variations must be at least equal to count of connections defined in heat_buffer
. When reactor is heated, corresponding variations are drawn over connection_patches_connected
.
heat_connection_patches_disconnected
Type: SpriteVariations
If defined, number of variations must be at least equal to count of connections defined in heat_buffer
. When reactor is heated, corresponding variations are drawn over connection_patches_disconnected
.
lower_layer_picture
Type: Sprite
heat_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
scale_energy_usage
Type: bool
Default: false
When this is true, the reactor will stop consuming fuel/energy when the temperature has reached the maximum.
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.