mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-16 02:17:06 +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()
|
||||
|
||||
Reference in New Issue
Block a user