Prototype/NightVisionEquipment: Difference between revisions
Jump to navigation
Jump to search
(0.18.12: color_lookup) |
(Updated styling of prototype doc migration note) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div class="stub"><p>'''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/NightVisionEquipmentPrototype.html https://lua-api.factorio.com/latest/prototypes/NightVisionEquipmentPrototype.html] | |||
</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/Equipment}} | {{Prototype parent|Prototype/Equipment}} | ||
Used by [[nightvision]]. | Used by [[nightvision]]. | ||
Line 9: | Line 15: | ||
{{Prototype property|energy_input|[[Types/Energy|Energy]]}} | {{Prototype property|energy_input|[[Types/Energy|Energy]]}} | ||
{{Prototype property|color_lookup|[[Types/ | {{Prototype property|color_lookup|[[Types/DaytimeColorLookupTable|DaytimeColorLookupTable]]}} | ||
== Optional properties == | == Optional properties == | ||
Line 17: | Line 21: | ||
{{Prototype property|darkness_to_turn_on|[[Types/float|float]]|0.5|optional=true}} | {{Prototype property|darkness_to_turn_on|[[Types/float|float]]|0.5|optional=true}} | ||
Must be >= 0 and <= 1. | Must be >= 0 and <= 1. | ||
{{Prototype property|activate_sound|[[Types/Sound|Sound]]|optional=true}} | |||
{{Prototype property|deactivate_sound|[[Types/Sound|Sound]]|optional=true}} |
Latest revision as of 10:43, 21 September 2023
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/NightVisionEquipmentPrototype.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.
Prototype definitions » PrototypeBase » Prototype/Equipment » Prototype/NightVisionEquipment
Used by nightvision.
Prototype/NightVisionEquipment — night-vision-equipment | ||
color_lookup | :: | DaytimeColorLookupTable |
energy_input | :: | Energy |
activate_sound | :: | Sound (optional) |
darkness_to_turn_on | :: | float (optional) |
deactivate_sound | :: | Sound (optional) |
Inherited from Prototype/Equipment | ||
categories | :: | table of string |
energy_source | :: | EnergySource |
shape | :: | EquipmentShape |
sprite | :: | Sprite |
background_border_color | :: | Color (optional) |
background_color | :: | Color (optional) |
grabbed_background_color | :: | Color (optional) |
take_result | :: | string (optional) |
Inherited from PrototypeBase | ||
name | :: | string |
type | :: | string |
localised_description | :: | LocalisedString (optional) |
localised_name | :: | LocalisedString (optional) |
order | :: | Order (optional) |
Mandatory properties
This prototype inherits all the properties from Prototype/Equipment.
energy_input
Type: Energy
color_lookup
Type: DaytimeColorLookupTable
Optional properties
darkness_to_turn_on
Type: float
Default: 0.5
Must be >= 0 and <= 1.
activate_sound
Type: Sound
deactivate_sound
Type: Sound