ID Card Hard Del (#22276)

Fixes a hard del related to ID cards. Yet another of the "extremely tiny
hard dels".
This commit is contained in:
VMSolidus
2026-04-19 05:28:28 +00:00
committed by GitHub
parent fbcaf7168d
commit 90ceccb06b
5 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -558,7 +558,7 @@
var/obj/item/ID = new id(H)
imprint_idcard(H, ID)
if(personal_computer?.card_slot)
addtimer(CALLBACK(src, PROC_REF(register_pda), personal_computer, ID), 2 SECOND)
addtimer(CALLBACK(src, PROC_REF(register_pda), personal_computer, ID), 2 SECOND, TIMER_STOPPABLE | TIMER_DELETE_ME)
else
H.equip_or_collect(ID, slot_wear_id)
@@ -658,7 +658,7 @@
C.access = get_id_access(H)
C.rank = get_id_rank(H)
C.assignment = get_id_assignment(H)
addtimer(CALLBACK(H, TYPE_PROC_REF(/mob, set_id_info), C), 1 SECOND) // Delay a moment to allow an icon update to happen.
addtimer(CALLBACK(H, TYPE_PROC_REF(/mob, set_id_info), C), 1 SECOND, TIMER_STOPPABLE | TIMER_DELETE_ME) // Delay a moment to allow an icon update to happen.
if(H.mind && H.mind.initial_account)
C.associated_account_number = H.mind.initial_account.account_number
+4 -1
View File
@@ -183,7 +183,10 @@
/obj/item/card/id/Destroy()
QDEL_NULL(chat_user)
mob_id = null
. = ..()
access = null
front = null
side = null
return ..()
/obj/item/card/id/examine(mob/user, distance, is_adjacent, infix, suffix, show_extended)
. = ..()
+1 -1
View File
@@ -21,7 +21,7 @@
/obj/effect/visual/sparks/start(var/direction)
if (direction)
addtimer(CALLBACK(src, PROC_REF(do_step), direction), 5)
addtimer(CALLBACK(src, PROC_REF(do_step), direction), 5, TIMER_STOPPABLE | TIMER_DELETE_ME)
/obj/effect/visual/sparks/proc/do_step(direction)
step(src, direction)
@@ -74,7 +74,6 @@
/mob/living/silicon/Destroy()
GLOB.silicon_mob_list -= src
QDEL_NULL(computer)
QDEL_NULL(computer)
QDEL_NULL(id_card)
QDEL_NULL(common_radio)
for(var/datum/alarm_handler/AH in SSalarm.all_handlers)