Skip to content

WeatherEffectEntry ​

Inherits: Resource

An effect a weather gives to those who stand in it (a burn in a rain of embers, a Wet debuff in the rain), and how. One entry of the Exposed Effects list of a WeatherConfig.

Description ​

The entries are saved with the weather and edited in the Weather tab. The weather system (WeatherExposure) gives them every half second to whoever is out in the weather: not under a shelter that stops effects, not dead.

Properties ​

inteffect_id0
ModemodeMode.HELD
floatinterval0.5
AffectsaffectsAffects.PARTY

Methods ​

Effectget_effect()
Stringdescribe()
PackedStringArrayvalidate()

Enumerations ​

enum Mode ​

How the weather gives the effect

  • HELD = 0 - Given once when an entity is exposed, taken away at once when it is sheltered or the weather ends (a burn while the embers fall)
  • REFRESHED = 1 - Applied again every interval to every exposed entity, so its duration keeps being renewed; when the weather ends or the entity is sheltered nothing renews it and it runs out by itself (a Wet debuff of a minute)

enum Affects ​

Who gets the effect

  • PARTY = 0 - The players of the party
  • EVERYONE = 1 - Every entity of the world

Property descriptions ​

int effect_id = 0 ​

The effect (an Effect of the project: its id). 0 = none chosen

Mode mode = Mode.HELD ​

How the weather gives it: held while exposed, or renewed every interval (see the modes)

float interval = 0.5 ​

Seconds between two applications in the Refreshed mode

Affects affects = Affects.PARTY ​

Who gets the effect: the party, or every entity

Method descriptions ​

Effect get_effect() ​

The effect of this entry (null when none is chosen or it was deleted)

String describe() ​

One line that says what the entry is (the title of its container in the editor)

PackedStringArray validate() ​

The warnings of this entry