Files
Aurora.3/code/modules/events/gravity.dm
NanakoAC 4c7e1eb595 False Alarm Fixes (#1022)
-Makes a lot of unsuitable events excluded from faking. Some of them could do with reworking to make them function, like the infestation and prison breaks, but for now i just had to exclude them
-Adds an In-character/descriptive name, used for the announcement apologising for the mistake
-Fixes an issue where using debug Trigger Event verb would fill the events list with empty severe events and cause runtime errors
2016-10-02 21:24:00 +03:00

26 lines
914 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 world)
if(A.z in config.station_levels)
A.gravitychange(gravity_is_on, A)
/datum/event/gravity/end()
if(!gravity_is_on)
gravity_is_on = 1
for(var/area/A in world)
if(A.z in config.station_levels)
A.gravitychange(gravity_is_on, A)
command_announcement.Announce("Gravity generators are again functioning within normal parameters. Sorry for any inconvenience.", "Gravity Restored")