Prototype/Reactor: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Updated styling of prototype doc migration note)
(Removed old prototype docs)
 
Line 2: Line 2:


</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
</p><p>This wiki page is no longer updated and '''will be removed at some point in the future''', so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback [https://forums.factorio.com/viewforum.php?f=233 on the forums].</p></div>
{{Prototype parent|Prototype/EntityWithOwner}}
A [[nuclear reactor|reactor]].
{{Prototype TOC|reactor}}
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/EntityWithOwner]].
{{Prototype property|working_light_picture|[[Types/Sprite|Sprite]]}}
{{Prototype property|heat_buffer|[[Types/HeatBuffer|HeatBuffer]]}}
The energy output as heat.
{{Prototype property|energy_source|[[Types/EnergySource|EnergySource]]}}
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]]}}
How much energy this reactor can consume (from the input energy source) and then output as heat.
== Optional properties ==
{{Prototype property|connection_patches_connected|[[Types/SpriteVariations|SpriteVariations]]|optional=true}}
If defined, number of variations must be at least equal to count of [[Types/HeatBuffer#connections|connections]] defined in <code>heat_buffer</code>. Each variation represents connected heat buffer connection of corresponding index.
{{Prototype property|connection_patches_disconnected|[[Types/SpriteVariations|SpriteVariations]]|optional=true}}
If defined, number of variations must be at least equal to count of [[Types/HeatBuffer#connections|connections]] defined in <code>heat_buffer</code>. Each variation represents unconnected heat buffer connection of corresponding index.
{{Prototype property|heat_connection_patches_connected|[[Types/SpriteVariations|SpriteVariations]]|optional=true}}
If defined, number of variations must be at least equal to count of [[Types/HeatBuffer#connections|connections]] defined in <code>heat_buffer</code>. When reactor is heated, corresponding variations are drawn over <code>connection_patches_connected</code>.
{{Prototype property|heat_connection_patches_disconnected|[[Types/SpriteVariations|SpriteVariations]]|optional=true}}
If defined, number of variations must be at least equal to count of [[Types/HeatBuffer#connections|connections]] defined in <code>heat_buffer</code>. When reactor is heated, corresponding variations are drawn over <code>connection_patches_disconnected</code>.
{{Prototype property|lower_layer_picture|[[Types/Sprite|Sprite]]|optional=true}}
{{Prototype property|heat_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.
{{Prototype property|neighbour_bonus|[[Types/double|double]]|1|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}}
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.

Latest revision as of 14:33, 25 October 2024

The prototype docs have moved to a new website with an improved format. This documentation page can now be found here: https://lua-api.factorio.com/latest/prototypes/ReactorPrototype.html

This wiki page is no longer updated and will be removed at some point in the future, so please update your browser bookmarks or other links that sent you here. If you'd like to contribute to the new docs, you can leave your feedback on the forums.