Skip to content

ShelterProfile ​

Inherits: DatabaseResource < Resource

What a kind of shelter does (a wooden cabin, a cave, a tent, a stone hall): how much of the weather it keeps off, what it does to the sound and which sound plays inside for each kind of weather. Make one in World > Shelters and give it to every ShelterVolume of that kind, so the cabin is written once. See docs: World > Shelter.

Properties ​

floatshelter_amount1.0
boolprotects_from_effectstrue
AudioProfileaudio_profile
Array[ShelterWeatherSound]weather_sounds[]

Methods ​

ShelterWeatherSoundget_weather_sound( kind: String )
ShelterWeatherSoundfind_weather_sound( kinds: PackedStringArray )
PackedStringArrayvalidate()

Property descriptions ​

Shelter

float shelter_amount = 1.0 ​

How much of the weather it keeps off (0 to 1): the screen look of the weather is weakened by this much (a tent 0.6, a porch 0.8, a cabin or a cave 1). A volume can use its own number

bool protects_from_effects = true ​

Do the exposed effects of the weather (a burn, a Wet debuff) stop for whoever is inside? Off for a tent that only keeps the rain off

Sound

AudioProfile audio_profile ​

How the sound changes while the camera is inside: the muffle of the weather outside, echo. Empty = it does not change

Array[ShelterWeatherSound] weather_sounds = [] ​

The weather sounds of this kind of shelter: a track for each kind of weather (the rain on the roof). A list, edited in the Shelters tab

Method descriptions ​

ShelterWeatherSound get_weather_sound( kind: String ) ​

The line for a kind of weather (null when the profile has none)

ShelterWeatherSound find_weather_sound( kinds: PackedStringArray ) ​

The line for the first of these kinds that the profile has a line for (a weather lists its kinds in order: sleet may list rain, then snow)

PackedStringArray validate() ​

The warnings of this profile (shown by the editor)