mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-09 17:02:56 +00:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user