From 5cf68337cde95a139397bbce56ff7de60dcabd47 Mon Sep 17 00:00:00 2001 From: Steelpoint Date: Mon, 26 Jun 2023 04:10:52 +0800 Subject: [PATCH] FixAHH --- .../objects/effects/landmarks/landmarks.dm | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/code/game/objects/effects/landmarks/landmarks.dm b/code/game/objects/effects/landmarks/landmarks.dm index 62dd3f3f83dd..807e5fb17f10 100644 --- a/code/game/objects/effects/landmarks/landmarks.dm +++ b/code/game/objects/effects/landmarks/landmarks.dm @@ -214,33 +214,33 @@ GLOB.xeno_hive_spawns -= src return ..() - /obj/effect/landmark/yautja_teleport - name = "yautja_teleport" +/obj/effect/landmark/yautja_teleport + name = "yautja_teleport" + /// The index we registered as in mainship_yautja_desc or yautja_teleport_descs + var/desc_index - /obj/effect/landmark/yautja_teleport/Initialize(mapload, ...) - . = ..() - var/turf/T = get_turf(src) +/obj/effect/landmark/yautja_teleport/Initialize(mapload, ...) + . = ..() + var/turf/T = get_turf(src) + desc_index = T.loc.name + T.loc_to_string() - if(is_mainship_level(z)) - GLOB.mainship_yautja_teleports += src + if(is_mainship_level(z)) + GLOB.mainship_yautja_teleports += src - GLOB.mainship_yautja_desc[T.loc.name + T.loc_to_string()] = src + GLOB.mainship_yautja_desc[desc_index] = src - else - GLOB.yautja_teleports += src + else + GLOB.yautja_teleports += src - GLOB.yautja_teleport_descs[T.loc.name + T.loc_to_string()] = src + GLOB.yautja_teleport_descs[desc_index] = src - /obj/effect/landmark/yautja_teleport/Destroy() +/obj/effect/landmark/yautja_teleport/Destroy() - var/turf/T = get_turf(src) - GLOB.mainship_yautja_teleports -= src - GLOB.yautja_teleports -= src + GLOB.mainship_yautja_teleports -= src + GLOB.yautja_teleports -= src - GLOB.mainship_yautja_desc -= T.loc.name + T.loc_to_string() - GLOB.yautja_teleport_descs -= T.loc.name + T.loc_to_string() + GLOB.mainship_yautja_desc -= desc_index + GLOB.yautja_teleport_descs -= desc_index - return ..() + return ..()