CONTENT CONTRACT · VERSION 1
set_weather
Override the weather of a map for a positive duration; afterwards the profile weather returns.
Signature
{ duration_ticks: PositiveTicks, kind: "set_weather", map: MapRef, weather: WeatherId }Fields
| Name | Type | Meaning |
|---|---|---|
duration_ticks | PositiveTicks | Duration of the override. Range: 1…2147483647; Unit: tick |
kind | "set_weather" | Discriminant |
map | MapRef | Map whose weather is set. Length: 1…256; Pattern: ^[\s\S]+$ |
weather | WeatherId | Weather of the override. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: weather |
Validated example
{
"duration_ticks": 75,
"kind": "set_weather",
"map": "m1",
"weather": "core:hill_golem_storm"
}