mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 15:01:04 +01:00
Refactored do_after to use a flag-based system for options (#17127)
* Refactored do_after to use a flag-based system for options * More flags * Ditto * Use the HAS_FLAG macro * do_after pass * Fix burning paper code * Resolve issues from Fluffy's code reviews * .
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
if(!unlock_power)
|
||||
return 0
|
||||
user.visible_message("\The [user] takes out \the [I], picking \the [holder]'s lock.")
|
||||
if(!do_after(user, 20, holder))
|
||||
if(!do_after(user, 2 SECONDS, holder))
|
||||
return 0
|
||||
if(prob(20*(unlock_power/getComplexity())))
|
||||
to_chat(user, "<span class='notice'>You pick open \the [holder]'s lock!</span>")
|
||||
|
||||
Reference in New Issue
Block a user