Prototype/DamageType: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (removed lang template)
(Note 255 instance limit)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Basics ==
{{Prototype parent|PrototypeBase}}
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]]. Only 255 instances of this prototype may be defined.


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


== Properties ==
== Optional properties ==
=== type ===
Inherits all properties from [[PrototypeBase]].
'''Type''': [[Types/string]]


Must be "damage-type".
{{Prototype property|hidden|[[Types/bool|bool]]|false|optional=true}}
 
=== name ===
'''Type''': [[Types/string]]
 
The unique name of this damage type.

Latest revision as of 12:55, 23 April 2021

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. Only 255 instances of this prototype may be defined.


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