mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
23 lines
650 B
Plaintext
23 lines
650 B
Plaintext
/datum/event/dust
|
|
startWhen = 10
|
|
endWhen = 30
|
|
|
|
/datum/event/dust/announce()
|
|
command_announcement.Announce("Debris resulting from activity on another nearby asteroid is approaching your colony.", "Dust Alert")
|
|
|
|
/datum/event/dust/start()
|
|
dust_swarm(get_severity())
|
|
|
|
/datum/event/dust/end()
|
|
command_announcement.Announce("The colony 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"
|