mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-25 16:53:28 +00:00
changes: Replaces a lot of in-world loops with more specific lists. Recipes are now copied in SSmachinery/Recover() Fixed bad sorting on all_areas list. Added skeleton Destroy() to SMESes as they did not have one and are failing to GC. Seems to shorten SSatoms init a bit, maybe from removal of in-world in MULEs?
24 lines
863 B
Plaintext
24 lines
863 B
Plaintext
/datum/event/gravity
|
|
announceWhen = 5
|
|
ic_name = "a gravity failure"
|
|
|
|
/datum/event/gravity/setup()
|
|
endWhen = rand(15, 60)
|
|
|
|
/datum/event/gravity/announce()
|
|
command_announcement.Announce("Feedback surge detected in mass-distributions systems. Artificial gravity has been disabled whilst the system reinitializes. Further failures may result in a gravitational collapse and formation of blackholes.", "Gravity Failure")
|
|
|
|
/datum/event/gravity/start()
|
|
gravity_is_on = 0
|
|
for(var/area/A in the_station_areas)
|
|
A.gravitychange(gravity_is_on, A)
|
|
|
|
/datum/event/gravity/end()
|
|
if(!gravity_is_on)
|
|
gravity_is_on = 1
|
|
|
|
for(var/area/A in the_station_areas)
|
|
A.gravitychange(gravity_is_on, A)
|
|
|
|
command_announcement.Announce("Gravity generators are again functioning within normal parameters. Sorry for any inconvenience.", "Gravity Restored")
|