mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] Makes uses of do_after sane (#11582)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2c34c93e00
commit
1b8f394a14
@@ -62,7 +62,7 @@
|
||||
var/confirm = tgui_alert(user, "The PDA you're holding contains a vulnerable ID card. Will you risk it?", "Confirmation", list("Definitely", "Cancel"))
|
||||
if(confirm != "Definitely")
|
||||
return FALSE
|
||||
if(!do_after(user, 100, src))
|
||||
if(!do_after(user, 10 SECONDS, target = src))
|
||||
return FALSE
|
||||
user.visible_message(span_warning("[user] successfully makes [src] disappear!"))
|
||||
return TRUE
|
||||
@@ -85,7 +85,7 @@
|
||||
return FALSE
|
||||
else
|
||||
user.visible_message(span_warning("[user] is threatening to make [src] disappear!"))
|
||||
if(!do_after(user, 100, src))
|
||||
if(!do_after(user, 10 SECONDS, target = src))
|
||||
return FALSE
|
||||
user.visible_message(span_warning("[user] successfully makes [src] disappear!"))
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user