Skip to content

Commit

Permalink
use addtimers instead
Browse files Browse the repository at this point in the history
  • Loading branch information
alsoandanswer committed Jan 31, 2025
1 parent c481db0 commit 8d38b25
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions code/game/machinery/cryo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,7 @@
user.visible_message(SPAN_NOTICE("[user] puts [L] into [src]."),
SPAN_NOTICE("You put [L] into [src]."), range = 3)
qdel(attacking_item)
sleep(2.5 SECONDS)
update_icon()
addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_icon)), 2.5 SECONDS)

else if(default_deconstruction_screwdriver(user, attacking_item))
return TRUE
Expand Down Expand Up @@ -309,9 +308,7 @@

if(user.pulling == L)
user.pulling = null
sleep(2.5 SECONDS)
update_icon()

addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_icon)), 2.5 SECONDS)

/obj/machinery/atmospherics/unary/cryo_cell/update_icon(var/only_pickle = FALSE)
ClearOverlays()
Expand Down Expand Up @@ -461,8 +458,7 @@
SPAN_NOTICE("You climb into [src]."), range = 3)

put_mob(usr)
sleep(2.5 SECONDS)
update_icon()
addtimer(CALLBACK(src, TYPE_PROC_REF(/atom, update_icon)), 2.5 SECONDS)
return

/atom/proc/return_air_for_internal_lifeform(var/mob/living/lifeform)
Expand Down

0 comments on commit 8d38b25

Please sign in to comment.