refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
+5 -5
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)