mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-01-29 18:31:03 +00:00
* Update settings * Whitespace changes * Comment out merger hooks in gitattributes Corrupt maps would have to be resolved in repo before hooks could be updated * Revert "Whitespace changes" This reverts commitafbdd1d844. * Whitespace again minus example * Gitignore example changelog * Restore changelog merge setting * Keep older dmi hook attribute until hooks can be updated * update vscode settings too * Renormalize remaining * Revert "Gitignore example changelog" This reverts commitde22ad375d. * Attempt to normalize example.yml (and another file I guess) * Try again
34 lines
878 B
Plaintext
34 lines
878 B
Plaintext
/datum/event/dust
|
|
startWhen = 10
|
|
endWhen = 30
|
|
|
|
/datum/event/dust/start()
|
|
affecting_z -= global.using_map.sealed_levels // Space levels only please!
|
|
..()
|
|
|
|
/datum/event/dust/announce()
|
|
if(!victim)
|
|
command_announcement.Announce("Debris resulting from activity on another nearby asteroid is approaching \the [location_name()]", "Dust Alert")
|
|
|
|
/datum/event/dust/tick()
|
|
if(prob(10))
|
|
dust_swarm(severity, affecting_z)
|
|
|
|
/datum/event/dust/end()
|
|
..()
|
|
if(!victim)
|
|
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()
|
|
return |