mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 13:18:09 +01:00
[MIRROR] Fixes gravity surge event affecting capsule shelters on maps without gravity generators (#11969)
Co-authored-by: Ryumi <ghosttehspychecka@gmail.com>
This commit is contained in:
co-authored by
Ryumi
parent
ae54169ed8
commit
268c2003e2
@@ -23,12 +23,12 @@
|
||||
|
||||
/datum/event2/event/gravity/start()
|
||||
for(var/area/A in world)
|
||||
if(A.z in get_location_z_levels(space_only = TRUE))
|
||||
if(!(A.flags & AREA_ALWAYS_HAS_GRAVITY) && A.z in get_location_z_levels(space_only = TRUE))
|
||||
A.gravitychange(FALSE)
|
||||
|
||||
/datum/event2/event/gravity/end()
|
||||
for(var/area/A in world)
|
||||
if(A.z in get_location_z_levels(space_only = TRUE))
|
||||
if(!(A.flags & AREA_ALWAYS_HAS_GRAVITY) && A.z in get_location_z_levels(space_only = TRUE))
|
||||
A.gravitychange(TRUE)
|
||||
|
||||
command_announcement.Announce("Gravity generators are again functioning within normal parameters. Sorry for any inconvenience.", "Gravity Restored")
|
||||
|
||||
Reference in New Issue
Block a user