CONTENT CONTRACT · VERSION 1
status
A timed actor condition with a stacking rule, a speed factor and periodic damage.
Signature
{ begin_text: (TextKey)?, damage_per_tick: Count, damage_taken_permille: (Permille)?, damage_type: (DamageTypeId)?, deflects: (boolean)?, duration_ticks: SpanTicks, eaten_text: (TextKey)?, ends_on_eating: (TagId)?, gather_bonus_permille: (Permille)?, group: (StatusGroup)?, health_regen_out_of_combat: (PositiveCount)?, icon: TextureAssetId, id: ContentId, kind: "status", look: (FxId)?, max_health: (PositiveHitPoints)?, max_health_permille: (Permille)?, melee_damage_permille: (Permille)?, name: TextKey, native: (NativeStatus)?, polarity: StatusPolarity, ranged_damage_permille: (Permille)?, removed_by: (StatusRemoval)?, speed_permille: Permille, stacking: StatusStacking, stamina_bonus_permille: (Permille)?, stamina_drain_per_second: (PositiveCount)?, stamina_regen_permille: (Permille)? }Fields
| Name | Type | Meaning |
|---|---|---|
begin_text | TextKey | Text the bearer's player sees when a faction's defeat gives it the status (`faction.defeat_status`); absent: none. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
damage_per_tick | Count | Damage per tick while active. Range: 0…2147483647; Unit: hp |
damage_taken_permille | Permille | Protection while active: share less of the damage that gets through the worn armor; absent: none. Range: 0…1000; Unit: permille |
damage_type | DamageTypeId | Damage type of the periodic damage; present exactly when it is nonzero. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: damage_type |
deflects | boolean | True: blows and shots that strike the bearer are reported as a parry (the `parry` moment: the blow springs back, its little damage still counts). Absent: false. |
duration_ticks | SpanTicks | Duration of one application. Range: 1…18000; Unit: tick |
eaten_text | TextKey | Text the bearer's player sees when eating ends it (`ends_on_eating`); absent: none. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
ends_on_eating | TagId | The status ends when its bearer eats an item with this tag (a committed use of the item); absent: it runs its duration. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: tag |
gather_bonus_permille | Permille | Gathering bonus while active: chance per axe or pickaxe blow to count twice; absent: none. Range: 0…1000; Unit: permille |
group | StatusGroup | Group of which a bearer has one status at a time: applying it ends the others of its group; absent: none. |
health_regen_out_of_combat | PositiveCount | Health a player regains per tick while active and out of combat (neither hurt nor attacking for a few seconds), in thousandths of a hit point; absent: none. Range: 1…2147483647; Unit: count |
icon | TextureAssetId | Texture asset used by the HUD condition badge. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: asset:texture |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
kind | "status" | Discriminant |
look | FxId | Look on the bearer from each application until the status ends. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: fx |
max_health | PositiveHitPoints | Maximum health a player gains while active; absent: none. Range: 1…2147483647; Unit: hp |
max_health_permille | Permille | Maximum health of a player while active, in thousandths of what it would be without (750: a quarter less); absent: unchanged. Range: 0…1000; Unit: permille |
melee_damage_permille | Permille | Melee bonus while active: share added to the damage of the bearer's melee blows, after the weapon's; absent: none. Range: 0…1000; Unit: permille |
name | TextKey | Localization key for the displayed name. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
native | NativeStatus | Native condition represented by this definition; absent for content-applied conditions. |
polarity | StatusPolarity | Semantic polarity, encoded by both frame color and shape. |
ranged_damage_permille | Permille | Ranged bonus while active: share added to the damage of the bearer's shots; absent: none. Range: 0…1000; Unit: permille |
removed_by | StatusRemoval | Tool actions that take the status off its bearer (a hook pulling a shell plate away, a gust tearing a moss coat off); absent: none does. |
speed_permille | Permille | Movement speed while active, in thousandths of normal speed. Range: 0…1000; Unit: permille |
stacking | StatusStacking | What a repeated application of an active status does. |
stamina_bonus_permille | Permille | Stamina bonus while active: running costs and resting restores stamina at this share more favorably; absent: none. Range: 0…1000; Unit: permille |
stamina_drain_per_second | PositiveCount | Stamina the bearer loses per second while active, on top of what running and resting do (a draining aura); absent: none. Range: 1…2147483647; Unit: count |
stamina_regen_permille | Permille | Recovery bonus while active: share by which resting restores stamina faster; absent: none. Range: 0…1000; Unit: permille |
Validated example
{
"damage_per_tick": 1,
"damage_type": "core:fire_damage",
"duration_ticks": 40,
"icon": "core:status_burning_icon",
"id": "core:burning",
"kind": "status",
"look": "core:burning_look",
"name": "core:burning_name",
"polarity": "negative",
"speed_permille": 1000,
"stacking": "max_duration"
}