data/elements/
An element: a kind of damage amount, such as fire or physical. A hit’s damage is split per element, a victim may resist each element with a stat, and hooks can add to or convert between elements. A damage type names its element. The engine declares manifold:generic.
| Registry | manifold:element |
| Files | data/elements/*.ron, *.update.ron, *.final.ron |
| Sides | both: the server and every client load it, and the handshake’s data hash covers it |
| Reads | nothing |
| Contract | Gameplay framework, data stage |
Entry
A record, written Element(..); the name before the parentheses is optional.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | yes | The element’s key, <mod-id>:<name>. | |
resist_stat | string or None | no | no resistance | The victim’s stat that resists this element (manifold:stat key): a fraction, capped by the formula. |
tags | list of string | no | none | Tags hits of this element carry. |
hit_cue | string or None | no | none | The cue a hit of this element plays when its damage type has none (manifold:cue key). |
Example
No bundled file declares one yet. An entry the engine declares, which mods may patch:
Element(id: "manifold:generic")