Replaces some zero-delay timers with INVOKE_ASYNC (#52434)

* INVOKE_ASYNC

Replaces a zero-delay timer with INVOKE_ASYNC

* More timers

Switches out some more zero-delay timers for `INVOKE_ASYNC`

* lib_codex_gigas

One last switch
This commit is contained in:
TemporalOroboros
2020-07-26 22:10:38 -04:00
committed by SkyratBot
parent 19cf64c475
commit 1ca448ae1f
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -315,8 +315,8 @@
/obj/item/kirbyplants/ComponentInitialize()
. = ..()
AddComponent(/datum/component/tactical)
addtimer(CALLBACK(src, /datum.proc/_AddComponent, list(/datum/component/beauty, 500)), 0)
AddComponent(/datum/component/two_handed, require_twohands=TRUE, force_unwielded=10, force_wielded=10)
INVOKE_ASYNC(src, /datum.proc/_AddComponent, list(/datum/component/beauty, 500))
/obj/item/kirbyplants/random
icon = 'icons/obj/flora/_flora.dmi'
+1 -1
View File
@@ -15,7 +15,7 @@
/obj/structure/statue/Initialize()
. = ..()
AddComponent(art_type, impressiveness)
addtimer(CALLBACK(src, /datum.proc/_AddComponent, list(/datum/component/beauty, impressiveness * 75)), 0)
INVOKE_ASYNC(src, /datum.proc/_AddComponent, list(/datum/component/beauty, impressiveness * 75))
/obj/structure/statue/attackby(obj/item/W, mob/living/user, params)
add_fingerprint(user)