Replaces all instances of spawn() with addtimer/INVOKE_ASYNC

This commit is contained in:
CitadelStationBot
2017-07-06 09:14:03 -05:00
parent b1b4826c0c
commit beccb4742f
12 changed files with 272 additions and 232 deletions
@@ -59,11 +59,16 @@ Note: Must be placed within 3 tiles of the R&D Console
if(!user.drop_item())
to_chat(user, "<span class='warning'>\The [O] is stuck to your hand, you cannot put it in the [src.name]!</span>")
return
busy = 1
busy = TRUE
loaded_item = O
O.forceMove(src)
to_chat(user, "<span class='notice'>You add the [O.name] to the [src.name]!</span>")
flick("d_analyzer_la", src)
spawn(10)
icon_state = "d_analyzer_l"
busy = 0
addtimer(CALLBACK(src, .proc/finish_loading), 10)
/obj/machinery/r_n_d/destructive_analyzer/proc/finish_loading()
update_icon()
busy = FALSE
/obj/machinery/r_n_d/destructive_analyzer/update_icon()
icon_state = "d_analyzer_l"