mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +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:
@@ -290,7 +290,7 @@
|
||||
|
||||
to_chat(user, SPAN_NOTICE("You begin repairing the damage to \the [src]..."))
|
||||
playsound(get_turf(src), 'sound/items/Welder.ogg', 100, 1)
|
||||
if(WT.use(round(damage / 75)) && do_after(user, damage / 10))
|
||||
if(WT.use(round(damage / 75)) && do_after(user, damage / 10, src, DO_REPAIR_CONSTRUCT))
|
||||
damage = 0
|
||||
to_chat(user, SPAN_NOTICE("You fully repair \the [src]."))
|
||||
update_icon()
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
return
|
||||
|
||||
user.visible_message("<b>[user]</b> starts making a scan of \the [target]...", SPAN_NOTICE("You start making a scan of \the [target]..."), range = 3)
|
||||
if(do_after(user, 30 * length(pages_to_scan), TRUE, target))
|
||||
if(do_after(user, 30 * length(pages_to_scan), target))
|
||||
if(!drive)
|
||||
to_chat(user, SPAN_WARNING("\The [src] doesn't have a drive installed."))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user