Tied gravity to the actual grav generator

This commit is contained in:
ZomgPonies
2014-05-20 22:59:25 +02:00
committed by Regen
parent 7bf3f18cce
commit 557a97f0fc
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ var/global/list/possibleEvents = list()
possibleEvents[/datum/event/vent_clog] = 300
possibleEvents[/datum/event/anomaly/anomaly_grav] = 200
possibleEvents[/datum/event/weightless] = 150
// possibleEvents[/datum/event/weightless] = 150
possibleEvents[/datum/event/wormholes] = 150
possibleEvents[/datum/event/pda_spam] = max(min(25, player_list.len) * 4, 200)
+7
View File
@@ -289,11 +289,18 @@ var/const/GRAV_NEEDS_WRENCH = 3
alert = 1
investigate_log("was brought online and is now producing gravity for this level.", "gravity")
message_admins("The gravity generator was brought online. (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[x];Y=[y];Z=[z]'>[area.name]</a>)")
for(var/area/A in world)
if (A.z != 1) continue
A.gravitychange(1,A)
else
if(gravity_in_level() == 1)
alert = 1
investigate_log("was brought offline and there is now no gravity for this level.", "gravity")
message_admins("The gravity generator was brought offline with no backup generator. (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[x];Y=[y];Z=[z]'>[area.name]</a>)")
for(var/area/A in world)
if (A.z != 1) continue
A.gravitychange(0,A)
update_icon()
update_list()