Files
Aurora.3/code/modules/weather/weather_fsm_state_transitions.dm
FluffyandGitHub 41a05bc196 Refactored the abstract meta propriety (#19797)
Refactored the abstract meta propriety into defines.
It's now more easy to spot/see abstract types thanks to the macro that
defines them.
Added a check on initialization of atoms to avoid spawning abstract
types.
Made the spawn_atom proc check for abstractness.
Made the spawn_atom proc use tgui_list for types list shorter than 1000
elements, which enables to search in them. It's too laggy on larger
lists so above 1000 it uses the builtin input.
Made the spawn_atom use a list subtraction instead of a double list,
it's lighter on memory and processing.
2024-08-23 10:49:28 +00:00

89 lines
2.7 KiB
Plaintext

ABSTRACT_TYPE(/singleton/state_transition/weather)
var/likelihood_weighting = 100
/singleton/state_transition/weather/is_open(datum/holder)
var/obj/abstract/weather_system/weather = holder
return weather.supports_weather_state(target)
/singleton/state_transition/weather/calm
target = /singleton/state/weather/calm
likelihood_weighting = 50
/singleton/state_transition/weather/snow
target = /singleton/state/weather/snow
/singleton/state_transition/weather/rain
target = /singleton/state/weather/rain
/singleton/state_transition/weather/snow_medium
target = /singleton/state/weather/snow/medium
/singleton/state_transition/weather/snow_heavy
target = /singleton/state/weather/snow/heavy
likelihood_weighting = 20
/singleton/state_transition/weather/storm
target = /singleton/state/weather/rain/storm
/singleton/state_transition/weather/hail
target = /singleton/state/weather/rain/hail
likelihood_weighting = 20
/singleton/state_transition/weather/sandstorm
target = /singleton/state/weather/sandstorm
likelihood_weighting = 20
//weather for planets
//snow planets
/singleton/state_transition/weather/calm/snow_planet
target = /singleton/state/weather/calm/snow_planet
/singleton/state_transition/weather/snow/snow_planet
target = /singleton/state/weather/snow/snow_planet
/singleton/state_transition/weather/snow_medium/snow_planet
target = /singleton/state/weather/snow/medium/snow_planet
/singleton/state_transition/weather/snow_heavy/snow_planet
target = /singleton/state/weather/snow/heavy/snow_planet
//jungle planets planets
/singleton/state_transition/weather/calm/jungle_planet
target = /singleton/state/weather/calm/jungle_planet
/singleton/state_transition/weather/rain/jungle_planet
target = /singleton/state/weather/rain/jungle_planet
/singleton/state_transition/weather/storm/jungle_planet
target = /singleton/state/weather/rain/storm/jungle_planet
//lava planets
/singleton/state_transition/weather/calm/lava_planet
target = /singleton/state/weather/calm/lava_planet
/singleton/state_transition/weather/ash/lava_planet
target = /singleton/state/weather/ash/lava_planet
//arctic planets
/singleton/state_transition/weather/calm/arctic_planet
target = /singleton/state/weather/calm/arctic_planet
/singleton/state_transition/weather/hail/arctic_planet
target = /singleton/state/weather/rain/hail/arctic_planet
//desert planets
/singleton/state_transition/weather/calm/desert_planet
target = /singleton/state/weather/calm/desert_planet
/singleton/state_transition/weather/sandfall/desert_planet
target = /singleton/state/weather/sandfall/desert_planet
/singleton/state_transition/weather/sandstorm/desert_planet
target = /singleton/state/weather/sandstorm/desert_planet