mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 06:07:22 +01:00
[MIRROR] Refactors do_after w/ TG's do_after (#11486)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
c1fffe13f3
commit
f85a202d80
@@ -172,7 +172,7 @@
|
||||
to_chat(user, span_warning("You need at least two rods to do this."))
|
||||
return
|
||||
to_chat(user, span_notice("Assembling grille..."))
|
||||
if(!do_after(user, 1 SECONDS, R, exclusive = TASK_ALL_EXCLUSIVE))
|
||||
if(!do_after(user, 1 SECONDS, R))
|
||||
return
|
||||
if(!R.use(2))
|
||||
return
|
||||
@@ -192,7 +192,7 @@
|
||||
to_chat(user, span_warning("You need at least four sheets of glass to do this."))
|
||||
return
|
||||
to_chat(user, span_notice("Assembling window..."))
|
||||
if(!do_after(user, 4 SECONDS, G, exclusive = TASK_ALL_EXCLUSIVE))
|
||||
if(!do_after(user, 4 SECONDS, G))
|
||||
return
|
||||
if(!G.use(4))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user