mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-18 03:21:13 +01:00
Hidden Offships (#15544)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user