From 1228fa67f508528abf18c969dd54455859e00d70 Mon Sep 17 00:00:00 2001 From: skoglol <33292112+kriskog@users.noreply.github.com> Date: Thu, 23 Jul 2020 17:10:40 +0200 Subject: [PATCH] Merge pull request #52401 from MrDoomBringer/supplyContractorFix Fixes contractorpods sending people to secret room hell --- _maps/map_files/generic/CentCom.dmm | 2 +- code/game/area/areas/centcom.dm | 2 +- code/modules/cargo/centcom_podlauncher.dm | 2 +- code/modules/cargo/supplypod.dm | 7 +++++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/_maps/map_files/generic/CentCom.dmm b/_maps/map_files/generic/CentCom.dmm index c6bada0a658..0bfa5dd62a0 100644 --- a/_maps/map_files/generic/CentCom.dmm +++ b/_maps/map_files/generic/CentCom.dmm @@ -4799,7 +4799,7 @@ "lS" = ( /obj/structure/fans/tiny/invisible, /turf/open/floor/holofloor/hyperspace, -/area/centcom/supplypod/fly_me_to_the_moon) +/area/centcom/supplypod/supplypod_temp_holding) "lT" = ( /obj/machinery/door/airlock/centcom{ name = "CentCom Security"; diff --git a/code/game/area/areas/centcom.dm b/code/game/area/areas/centcom.dm index 71453bc341c..97602c1ba21 100644 --- a/code/game/area/areas/centcom.dm +++ b/code/game/area/areas/centcom.dm @@ -29,7 +29,7 @@ /area/centcom/holding name = "Holding Facility" -/area/centcom/supplypod/fly_me_to_the_moon +/area/centcom/supplypod/supplypod_temp_holding name = "Supplypod Shipping lane" icon_state = "supplypod_flight" diff --git a/code/modules/cargo/centcom_podlauncher.dm b/code/modules/cargo/centcom_podlauncher.dm index 075194e2fff..fed098b4f30 100644 --- a/code/modules/cargo/centcom_podlauncher.dm +++ b/code/modules/cargo/centcom_podlauncher.dm @@ -608,7 +608,7 @@ else toLaunch.reverse_dropoff_turf = bay //Bay is currently a nonstatic expression, so it cant go into toLaunch using DuplicateObject toLaunch.update_icon()//we update_icon() here so that the door doesnt "flicker on" right after it lands - var/shippingLane = GLOB.areas_by_type[/area/centcom/supplypod/fly_me_to_the_moon] + var/shippingLane = GLOB.areas_by_type[/area/centcom/supplypod/supplypod_temp_holding] toLaunch.forceMove(shippingLane) if (launchClone) //We arent launching the actual items from the bay, rather we are creating clones and launching those if(launchRandomItem) diff --git a/code/modules/cargo/supplypod.dm b/code/modules/cargo/supplypod.dm index d36ebc94988..10b000af4d2 100644 --- a/code/modules/cargo/supplypod.dm +++ b/code/modules/cargo/supplypod.dm @@ -80,8 +80,11 @@ landingDelay = 20 //Very speedy! resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF -/obj/structure/closet/supplypod/Initialize() +/obj/structure/closet/supplypod/Initialize(var/turf/spawn_location) . = ..() + if (!spawn_location) + var/shippingLane = GLOB.areas_by_type[/area/centcom/supplypod/supplypod_temp_holding] //temporary holder for supplypods mid-transit + forceMove(shippingLane) setStyle(style, TRUE) //Upon initialization, give the supplypod an iconstate, name, and description based on the "style" variable. This system is important for the centcom_podlauncher to function correctly /obj/structure/closet/supplypod/extractionpod/Initialize() @@ -184,7 +187,7 @@ stay_after_drop = FALSE holder.pixel_z = initial(holder.pixel_z) holder.alpha = initial(holder.alpha) - var/shippingLane = GLOB.areas_by_type[/area/centcom/supplypod/fly_me_to_the_moon] + var/shippingLane = GLOB.areas_by_type[/area/centcom/supplypod/supplypod_temp_holding] forceMove(shippingLane) //Move to the centcom-z-level until the pod_landingzone says we can drop back down again if (!reverse_dropoff_turf) //If we're centcom-launched, the reverse dropoff turf will be a centcom loading bay. If we're an extraction pod, it should be the ninja jail. reverse_dropoff_turf = locate(/area/centcom/supplypod/loading/one) in GLOB.sortedAreas