[MIRROR] creating areas registers them with the grav gen (#9796)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-05 09:00:20 -07:00
committed by GitHub
parent 2b33b0e4bd
commit 6a62e578ab

View File

@@ -531,6 +531,13 @@
if(AO && istype(AO,/obj/item/areaeditor))
if(AO.uses_charges)
AO.charges -= 1
var/list/zLevels = using_map.station_levels.Copy()
for(var/datum/planet/P in SSplanets.planets)
zLevels -= P.expected_z_levels
for(var/obj/machinery/gravity_generator/main/GG in machines)
if(GG.z in zLevels)
GG.update_areas()
return TRUE
@@ -926,6 +933,12 @@
message_admins("[key_name(creator, creator.client)] just made a new area called [newA.name] ](<A href='byond://?_src_=holder;[HrefToken()];adminmoreinfo=\ref[creator]'>?</A>) at ([creator.x],[creator.y],[creator.z] - <A href='byond://?_src_=holder;[HrefToken()];adminplayerobservecoodjump=1;X=[creator.x];Y=[creator.y];Z=[creator.z]'>JMP</a>)",0,1)
log_game("[key_name(creator, creator.client)] just made a new area called [newA.name]")
var/list/zLevels = using_map.station_levels.Copy()
for(var/datum/planet/P in SSplanets.planets)
zLevels -= P.expected_z_levels
for(var/obj/machinery/gravity_generator/main/GG in machines)
if(GG.z in zLevels)
GG.update_areas()
return