[MIRROR] refactors most spans (#9139)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-10-04 06:00:17 -07:00
committed by GitHub
parent 43ee646816
commit ab154b48b2
1511 changed files with 12497 additions and 12357 deletions

View File

@@ -87,17 +87,17 @@
if(stage == FRAME_UNFASTENED)
var/obj/item/weldingtool/WT = W.get_welder()
if(!WT.remove_fuel(0, user))
to_chat(user, "<span class='warning'>\The [src] must be on to complete this task.</span>")
to_chat(user, span_warning("\The [src] must be on to complete this task."))
return
playsound(src, WT.usesound, 50, 1)
user.visible_message( \
"<span class='warning'>\The [user] begins deconstructing \the [src].</span>", \
"<span class='notice'>You start deconstructing \the [src].</span>")
span_warning("\The [user] begins deconstructing \the [src]."), \
span_notice("You start deconstructing \the [src]."))
if(do_after(user, 20 * WT.toolspeed, target = src) && WT.isOn())
new /obj/item/stack/material/steel(get_turf(src), 2)
user.visible_message( \
"<span class='warning'>\The [user] has deconstructed \the [src].</span>", \
"<span class='notice'>You deconstruct \the [src].</span>")
span_warning("\The [user] has deconstructed \the [src]."), \
span_notice("You deconstruct \the [src]."))
playsound(src, 'sound/items/Deconstruct.ogg', 75, 1)
qdel(src)
else if (stage == FRAME_FASTENED)