From 379c2f48f7576a6117fb287a9b9a37798dd8bb9d Mon Sep 17 00:00:00 2001 From: KorPhaeron Date: Sat, 16 Sep 2017 20:11:48 -0500 Subject: [PATCH 1/2] Fixes the magic ladder --- code/modules/mining/lavaland/necropolis_chests.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mining/lavaland/necropolis_chests.dm b/code/modules/mining/lavaland/necropolis_chests.dm index 9df050cbee3..4d07bb33ea8 100644 --- a/code/modules/mining/lavaland/necropolis_chests.dm +++ b/code/modules/mining/lavaland/necropolis_chests.dm @@ -582,7 +582,8 @@ for(var/i in 1 to world.maxz) if(i == ZLEVEL_CENTCOM || i == ZLEVEL_TRANSIT) continue - new /obj/structure/ladder/unbreakable/jacob(ladder_x, ladder_y, i) + var/turf/T = locate(ladder_x, ladder_y, i) + new /obj/structure/ladder/unbreakable/jacob(T) qdel(src) /obj/structure/ladder/unbreakable/jacob From 1eb9a759a3c4a24e29b8d7cb348d4846087faa13 Mon Sep 17 00:00:00 2001 From: KorPhaeron Date: Sat, 16 Sep 2017 20:15:15 -0500 Subject: [PATCH 2/2] Proper use of var names --- code/modules/mining/lavaland/necropolis_chests.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mining/lavaland/necropolis_chests.dm b/code/modules/mining/lavaland/necropolis_chests.dm index 4d07bb33ea8..8c784b7209b 100644 --- a/code/modules/mining/lavaland/necropolis_chests.dm +++ b/code/modules/mining/lavaland/necropolis_chests.dm @@ -582,8 +582,8 @@ for(var/i in 1 to world.maxz) if(i == ZLEVEL_CENTCOM || i == ZLEVEL_TRANSIT) continue - var/turf/T = locate(ladder_x, ladder_y, i) - new /obj/structure/ladder/unbreakable/jacob(T) + var/turf/T2 = locate(ladder_x, ladder_y, i) + new /obj/structure/ladder/unbreakable/jacob(T2) qdel(src) /obj/structure/ladder/unbreakable/jacob