Hidden Offships (#15544)

This commit is contained in:
Geeves
2023-02-12 19:57:37 +02:00
committed by GitHub
parent 5cad93c74f
commit 3b1aa2b159
30 changed files with 61 additions and 15 deletions
+7
View File
@@ -167,6 +167,13 @@
if(welcome_message)
to_chat(user, SPAN_NOTICE(welcome_message))
universe.OnPlayerLatejoin(user)
if(current_map.use_overmap)
var/obj/effect/overmap/visitable/sector = map_sectors["[user.z]"]
if(sector?.invisible_until_ghostrole_spawn)
sector.x = sector.start_x
sector.y = sector.start_y
sector.z = current_map.overmap_z
sector.invisible_until_ghostrole_spawn = FALSE
return TRUE
//Proc to check if a specific user can edit this spawner (open/close/...)
@@ -177,10 +177,6 @@
return M
//Proc executed after someone is spawned in
/datum/ghostspawner/human/post_spawn(mob/user)
. = ..()
/// Used for cryo to free up a slot when a ghost cryos.
/mob/living/carbon/human
var/datum/weakref/ghost_spawner
+4 -1
View File
@@ -50,6 +50,8 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
/// null | num | list. If a num or a (num, num) list, the radius or random bounds for placing this sector near the main map's overmap icon.
var/list/place_near_main
var/invisible_until_ghostrole_spawn = FALSE
/obj/effect/overmap/visitable/Initialize()
. = ..()
if(. == INITIALIZE_HINT_QDEL)
@@ -77,7 +79,8 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
start_y = start_y || rand(map_low, map_high)
home = locate(start_x, start_y, current_map.overmap_z)
forceMove(home)
if(!invisible_until_ghostrole_spawn)
forceMove(home)
update_name()