Do after implanter fixes (#11993)

This commit is contained in:
Cameron Lennox
2025-11-16 19:35:32 -05:00
committed by GitHub
parent d000de6262
commit 00151500a9
2 changed files with 4 additions and 4 deletions

View File

@@ -553,7 +553,7 @@
/obj/structure/theonepizza/attackby(var/obj/item/W, var/mob/living/user)
if(istype(W,/obj/item/material/knife))
user.visible_message(span_bold("\The [user]") + " starts to slowly cut through The One Pizza.", span_notice("You start to slowly cut through The One Pizza."))
if(do_after(user, slicetime))
if(do_after(user, slicetime, src))
if(!src)
return // We got disappeared already
user.visible_message(span_infoplain(span_bold("\The [user]") + " successfully cuts The One Pizza."), span_notice("You successfully cut The One Pizza."))

View File

@@ -20,7 +20,7 @@
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN)
if(do_after(user, 2.5 SECONDS))
if(do_after(user, 2.5 SECONDS, src))
if(user && src)
@@ -45,7 +45,7 @@
to_chat(user, span_notice("You start to unwrench the implanter."))
playsound(src, O.usesound, 50, 1)
if(do_after(user, 15 * O.toolspeed))
if(do_after(user, 15 * O.toolspeed, src))
to_chat(user, span_notice("You unwrench the implanter."))
anchored = FALSE
return
@@ -56,7 +56,7 @@
to_chat(user, span_notice("You start to wrench the implanter into place."))
playsound(src, O.usesound, 50, 1)
if(do_after(user, 15 * O.toolspeed))
if(do_after(user, 15 * O.toolspeed, src))
to_chat(user, span_notice("You wrench the implanter into place."))
anchored = TRUE