damage_type
Registers under Damage Types · source: modules/damage_type/v1
`resistance_group` is the resistanceGroupId this type's Resistance% is keyed under (see Typed Resistance) — defaults to `id` itself, which is the common physical-type pattern (each type is its own group, since there are only a few of them); magic types typically pass an explicit shared group like "elemental".
Example Usage
resource "air" {
source: modules/damage_type/v1
id: "air"
resistance_group: "elemental"
}
Arguments Reference
The following arguments are supported:
-
id- (Required) The unique id this record is registered and referenced under — what a `.resource` file's own filename-independent identity is, and what any other content's foreign-key-style field (a dungeon node's `next`, a skill node's `parent_id`, and so on) points at. community -
resistance_group- (Optional) `resistance_group` is the resistanceGroupId this type's Resistance% is keyed under (see Typed Resistance) — defaults to `id` itself, which is the common physical-type pattern (each type is its own group, since there are only a few of them); magic types typically pass an explicit shared group like "elemental". Defaults toNone. community -
mechanism_default- (Optional) Defaults to'instant'. community -
description- (Optional) Flavor text shown to players — pure display data with no effect on game mechanics. community