From 6b5840f8326f99d7213f2404fa95d6f305957bc3 Mon Sep 17 00:00:00 2001 From: Zonespace <41448081+Zonespace27@users.noreply.github.com> Date: Thu, 22 Aug 2024 08:43:19 -0700 Subject: [PATCH] Fixes retrieve fulton objective (#6994) # About the pull request ![image](https://github.com/user-attachments/assets/c484285a-a96b-4d48-826a-d906040790f3) # Changelog :cl: fix: "Retrieve Fulton" objective should now show up properly. /:cl: --- code/modules/objectives/retrieve_items.dm | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/code/modules/objectives/retrieve_items.dm b/code/modules/objectives/retrieve_items.dm index 9f9f600eacc8..89b644843c5c 100644 --- a/code/modules/objectives/retrieve_items.dm +++ b/code/modules/objectives/retrieve_items.dm @@ -14,10 +14,10 @@ /area/almayer/medical/medical_science, ) -/datum/cm_objective/retrieve_item/New(T) - ..() - if(T) - target_item = T +/datum/cm_objective/retrieve_item/New(atom/target) + . = ..() + if(target) + target_item = target initial_area = get_area(target_item) RegisterSignal(target_item, COMSIG_PARENT_PREQDELETED, PROC_REF(clean_up_ref)) @@ -74,7 +74,7 @@ qdel(src) return -/datum/cm_objective/retrieve_item/fulton/New() +/datum/cm_objective/retrieve_item/fulton/New(atom/target) . = ..() GLOB.failed_fultons += target_item activate() @@ -93,10 +93,6 @@ return clue -/datum/cm_objective/retrieve_item/fulton/complete() - ..() - - // ----------------------------------------------------------- // *** Documents and data disks after they have been read *** // -----------------------------------------------------------