mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +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:
@@ -59,7 +59,7 @@
|
||||
if(LAZYLEN(destroy_tools))
|
||||
if(is_type_in_list(C, destroy_tools))
|
||||
user.visible_message("<b>[user]</b> starts breaking down \the [src] with \the [C]!", SPAN_NOTICE("You start breaking down \the [src] with \the [C]."))
|
||||
if(do_after(user, 10 SECONDS, TRUE))
|
||||
if(do_after(user, 10 SECONDS, src, DO_REPAIR_CONSTRUCT))
|
||||
user.visible_message("<b>[user]</b> breaks down \the [src] with \the [C]!", SPAN_NOTICE("You break down \the [src] with \the [C]."))
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user