mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 20:47:43 +01:00
Makes uses of do_after sane (#18334)
* Prevents insta-actions * Do_after sanity NOTE: NUKE do_after_action * Update bonfire.dm * The rest of them Also fixes a tpyo * no minitest :) * . * . * Gets rid of the slowdown for now --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
736fe6ef28
commit
d73f6b8dbd
@@ -28,7 +28,7 @@
|
||||
if(get_dist(get_turf(user),get_turf(src)) <= 1)
|
||||
to_chat(user, span_notice("You begin inspecting \the [src]."))
|
||||
|
||||
if(do_after(user, 5 SECONDS))
|
||||
if(do_after(user, 5 SECONDS, target = src))
|
||||
to_chat(user, span_notice("\The [src] can possibly be restored with:"))
|
||||
for(var/obj/item/res as anything in material_needs)
|
||||
if(material_needs[res] > 0)
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
/obj/item/broken_gun/attackby(obj/item/W as obj, mob/user as mob)
|
||||
if(can_repair_with(W, user))
|
||||
if(do_after(user, (rand() * 10 SECONDS) + 5 SECONDS))
|
||||
if(do_after(user, (rand() * 10 SECONDS + 5 SECONDS), target = src))
|
||||
repair_with(W, user)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user