Prototype/NightVisionEquipment

From Official Factorio Wiki
Revision as of 15:51, 11 March 2020 by Bilka (talk | contribs) (0.18.12: color_lookup)
Jump to navigation Jump to search

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: table (array)

First array member must be a double, second array member must be a FileName or "identity". The file pointed to by the filename must be a sprite of size 16x16.

Optional properties

darkness_to_turn_on

Type: float
Default: 0.5
Must be >= 0 and <= 1.