Prevent re-selection of targets on cryo (#27635)

* Prevent re-selection of targets on cryo

* goodbye documentation
This commit is contained in:
Contrabang
2024-12-14 02:18:58 +00:00
committed by GitHub
parent 1eab5f1afb
commit 0588b35af7
4 changed files with 6 additions and 3 deletions
+2 -3
View File
@@ -109,6 +109,8 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective)
return TARGET_INVALID_GOLEM
if(possible_target.offstation_role)
return TARGET_INVALID_EVENT
if(HAS_TRAIT(possible_target.current, TRAIT_CRYO_DESPAWNING))
return TARGET_CRYOING
/datum/objective/is_invalid_target(datum/mind/possible_target)
. = ..()
@@ -165,9 +167,6 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective)
target = null
INVOKE_ASYNC(src, PROC_REF(post_target_cryo), owners)
/**
* Called a tick after when the objective's target goes to cryo.
*/
/datum/objective/proc/post_target_cryo(list/owners)
find_target()
if(!target)
+2
View File
@@ -343,6 +343,8 @@
items -= occupant // Don't delete the occupant
items -= announce // or the autosay radio.
ADD_TRAIT(occupant, TRAIT_CRYO_DESPAWNING, TRAIT_GENERIC)
for(var/obj/item/I in items)
if(istype(I, /obj/item/pda))
var/obj/item/pda/P = I