From 178792363d76609d43f02fb6414f53d314e4620f Mon Sep 17 00:00:00 2001 From: Steelpoint Date: Mon, 26 Jun 2023 04:14:36 +0800 Subject: [PATCH] asd --- .../objects/effects/landmarks/landmarks.dm | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/code/game/objects/effects/landmarks/landmarks.dm b/code/game/objects/effects/landmarks/landmarks.dm index 807e5fb17f10..00d92116caf8 100644 --- a/code/game/objects/effects/landmarks/landmarks.dm +++ b/code/game/objects/effects/landmarks/landmarks.dm @@ -216,30 +216,25 @@ /obj/effect/landmark/yautja_teleport name = "yautja_teleport" -+ /// The index we registered as in mainship_yautja_desc or yautja_teleport_descs -+ var/desc_index + var/desc_index /obj/effect/landmark/yautja_teleport/Initialize(mapload, ...) . = ..() var/turf/T = get_turf(src) -+ desc_index = T.loc.name + T.loc_to_string() + desc_index = T.loc.name + T.loc_to_string() 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 + GLOB.mainship_yautja_desc[desc_index] = 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 + GLOB.yautja_teleport_descs[desc_index] = src /obj/effect/landmark/yautja_teleport/Destroy() -- var/turf/T = get_turf(src) - GLOB.mainship_yautja_teleports -= src + LOB.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 + + GLOB.mainship_yautja_desc -= desc_index + GLOB.yautja_teleport_descs -= desc_index return ..()