mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
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:
committed by
SkyratBot
parent
19cf64c475
commit
1ca448ae1f
@@ -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'
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user