mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-15 09:03:53 +01:00
60202429a7
* starting work * most generic * more alerts * remaining alerts * many fixes * fix * properly set * virgo doesn't use those lines? * actually they are used * smallfixes * oops * silence of the bots * docs
35 lines
946 B
Plaintext
35 lines
946 B
Plaintext
/datum/event/dust
|
|
startWhen = 10
|
|
endWhen = 30
|
|
|
|
/datum/event/dust/start()
|
|
affecting_z -= using_map.sealed_levels // Space levels only please!
|
|
..()
|
|
|
|
/datum/event/dust/announce()
|
|
if(!victim)
|
|
GLOB.command_announcement.Announce("Debris resulting from activity on another nearby asteroid is approaching \the [location_name()]", "Dust Alert", ANNOUNCER_MSG_DEBRISFIELD_START)
|
|
|
|
/datum/event/dust/tick()
|
|
if(prob(10))
|
|
dust_swarm(severity, affecting_z)
|
|
|
|
/datum/event/dust/end()
|
|
..()
|
|
if(!victim)
|
|
GLOB.command_announcement.Announce("\The [location_name()] is no longer in danger of impact from space debris.", "Dust Notice", ANNOUNCER_MSG_DEBRISFIELD_END)
|
|
|
|
/datum/event/dust/proc/get_severity()
|
|
switch(severity)
|
|
if(EVENT_LEVEL_MUNDANE)
|
|
return "weak"
|
|
if(EVENT_LEVEL_MODERATE)
|
|
return prob(80) ? "norm" : "strong"
|
|
if(EVENT_LEVEL_MAJOR)
|
|
return "super"
|
|
return "weak"
|
|
|
|
// Overmap version
|
|
/datum/event/dust/overmap/announce()
|
|
return
|