mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 14:47:50 +01:00
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
35 lines
974 B
Plaintext
35 lines
974 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 a nearby asteroid is approaching \the [location_name()]", "Dust Alert", ANNOUNCER_MSG_DEBRISFIELD_START) // CHOMPEdit - Not in an asteroid
|
|
|
|
/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
|