Tied gravity to the actual grav generator

This commit is contained in:
ZomgPonies
2014-05-20 16:33:07 -04:00
parent f0ebf536c9
commit b4908b5d5c
3 changed files with 8 additions and 2 deletions
-1
View File
@@ -926,7 +926,6 @@
#include "code\modules\events\sayuevents\meaty_ores.dm"
#include "code\modules\events\sayuevents\spooky.dm"
#include "code\modules\events\sayuevents\undead.dm"
#include "code\modules\events\sayuevents\weightless.dm"
#include "code\modules\events\sayuevents\wormholes.dm"
#include "code\modules\events\tgevents\alien_infestation.dm"
#include "code\modules\events\tgevents\anomaly.dm"
+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()