Files
VOREStation/code/modules/events/dust.dm
Drathek 7c8bb85de3 Whitespace Standardization [MDB IGNORE] (#15748)
* 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 commit afbdd1d844.

* 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 commit de22ad375d.

* Attempt to normalize example.yml (and another file I guess)

* Try again
2024-02-20 11:28:51 +01:00

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