mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-24 15:47:14 +01:00
tl;dr level collections that can easily be logically restructured/moved as necessary will eventually be used for radio and overmaps location resolution. this is the last part of https://github.com/Citadel-Station-13/Citadel-Station-13-RP/pull/4841 that has not yet been integrated. this will be a draft for a while. --------- Co-authored-by: LetterN <24603524+LetterN@users.noreply.github.com>
32 lines
889 B
Plaintext
32 lines
889 B
Plaintext
/datum/event/dust
|
|
startWhen = 10
|
|
endWhen = 30
|
|
|
|
/datum/event/dust/announce()
|
|
if(victim)
|
|
command_announcement.Announce("The [location_name()] is now passing through a belt of space dust.", "[location_name()] Sensor Array")
|
|
else
|
|
command_announcement.Announce("A micrometeoroid cloud has been detected approaching \the [location_name()]", "Dust Alert")
|
|
|
|
/datum/event/dust/tick()
|
|
if(prob(10))
|
|
dust_swarm(severity, affecting_z)
|
|
|
|
/datum/event/dust/end()
|
|
command_announcement.Announce("\The [location_name()] is no longer in danger of impact from space debris.", "Dust Notice")
|
|
|
|
/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()
|
|
announceWhen = 0
|
|
return
|