Prototype/NightVisionEquipment: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Set prototype parent)
(Converted to SMW format)
Line 1: Line 1:
{{Prototype parent|Prototype/Equipment}}
{{Prototype parent|Prototype/Equipment}}
Used by [[nightvision]].


== Basics ==
{{Prototype TOC|night-vision-equipment}}
Prototype type: '''night-vision-equipment'''
 
Extends [[Prototype/Equipment]].


== Mandatory properties ==
== Mandatory properties ==
This prototype inherits all the properties from [[Prototype/Equipment]].
This prototype inherits all the properties from [[Prototype/Equipment]].


=== energy_input ===
{{Prototype property|energy_input|[[Types/Energy|Energy]]}}
'''Type''': [[Types/Energy]]
 
=== tint ===
'''Type''': [[Types/Color]]


=== desaturation_params ===
{{Prototype property|tint|[[Types/Color|Color]]}}
'''Type''': [[Types/EffectParams]]


=== light_params ===
{{Prototype property|desaturation_params|[[Types/EffectParams|EffectParams]]}}
'''Type''': [[Types/EffectParams]]


{{Prototype property|light_params|[[Types/EffectParams|EffectParams]]}}
== Optional properties ==
== Optional properties ==


=== darkness_to_turn_on ===
{{Prototype property|darkness_to_turn_on|[[Types/float|float]]|0.5|optional=true}}
'''Type''': [[Types/float]]
Must be >= 0 and <= 1.
 
'''Default''': 0.5
 
Must be >= 0 and <= 1

Revision as of 21:05, 27 July 2019

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

tint

Type: Color

desaturation_params

Type: EffectParams

light_params

Type: EffectParams

Optional properties

darkness_to_turn_on

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