mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Do after implanter fixes (#11993)
This commit is contained in:
@@ -553,7 +553,7 @@
|
|||||||
/obj/structure/theonepizza/attackby(var/obj/item/W, var/mob/living/user)
|
/obj/structure/theonepizza/attackby(var/obj/item/W, var/mob/living/user)
|
||||||
if(istype(W,/obj/item/material/knife))
|
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."))
|
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)
|
if(!src)
|
||||||
return // We got disappeared already
|
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."))
|
user.visible_message(span_infoplain(span_bold("\The [user]") + " successfully cuts The One Pizza."), span_notice("You successfully cut The One Pizza."))
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN)
|
user.setClickCooldown(DEFAULT_QUICK_COOLDOWN)
|
||||||
|
|
||||||
if(do_after(user, 2.5 SECONDS))
|
if(do_after(user, 2.5 SECONDS, src))
|
||||||
|
|
||||||
if(user && src)
|
if(user && src)
|
||||||
|
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
to_chat(user, span_notice("You start to unwrench the implanter."))
|
to_chat(user, span_notice("You start to unwrench the implanter."))
|
||||||
playsound(src, O.usesound, 50, 1)
|
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."))
|
to_chat(user, span_notice("You unwrench the implanter."))
|
||||||
anchored = FALSE
|
anchored = FALSE
|
||||||
return
|
return
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
to_chat(user, span_notice("You start to wrench the implanter into place."))
|
to_chat(user, span_notice("You start to wrench the implanter into place."))
|
||||||
playsound(src, O.usesound, 50, 1)
|
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."))
|
to_chat(user, span_notice("You wrench the implanter into place."))
|
||||||
anchored = TRUE
|
anchored = TRUE
|
||||||
|
|||||||
Reference in New Issue
Block a user