Prototype/DamageType: 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|PrototypeBase}}
{{Prototype parent|PrototypeBase}}
== Basics ==
Prototype type: '''damage-type'''
A damage type. This is used in the [[Damage|damage system]]. [[Damage#Damage_Types|A list of built-in damage types can be found here]].
A damage type. This is used in the [[Damage|damage system]]. [[Damage#Damage_Types|A list of built-in damage types can be found here]].


Damage types have no special properties by themselves, but must still be registered if you want to use them.
{{Prototype TOC|damage-type}}


== Optional properties ==
== Optional properties ==
Inherits all properties from [[PrototypeBase]].
Inherits all properties from [[PrototypeBase]].


=== hidden ===
{{Prototype property|hidden|[[Types/bool|bool]]|false|optional=true}}
'''Type''': [[Types/bool]]
 
'''Default''': false

Revision as of 18:14, 6 August 2019

Prototype definitions » PrototypeBase » Prototype/DamageType


A damage type. This is used in the damage system. A list of built-in damage types can be found here.


Prototype/DamageType — damage-type
hidden::bool (optional)
Inherited from PrototypeBase
name::string
type::string
localised_description::LocalisedString (optional)
localised_name::LocalisedString (optional)
order::Order (optional)

Optional properties

Inherits all properties from PrototypeBase.

hidden

Type: bool
Default: false