mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 08:29:57 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
. = ..()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user