[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

@@ -31,19 +31,19 @@
if(istype(P, /obj/item/stack/cable_coil))
var/obj/item/stack/cable_coil/C = P
if (C.get_amount() < 5)
to_chat(user, "<span class='warning'>You need five lengths of cable to add them to the frame.</span>")
to_chat(user, span_warning("You need five lengths of cable to add them to the frame."))
return
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
to_chat(user, "<span class='notice'>You start to add cables to the frame.</span>")
to_chat(user, span_notice("You start to add cables to the frame."))
if(do_after(user, 20) && state == 1)
if(C.use(5))
to_chat(user, "<span class='notice'>You add cables to the frame.</span>")
to_chat(user, span_notice("You add cables to the frame."))
state = 2
icon_state = "box_1"
else
if(P.has_tool_quality(TOOL_WRENCH))
playsound(src, W.usesound, 75, 1)
to_chat(user, "<span class='notice'>You dismantle the frame</span>")
to_chat(user, span_notice("You dismantle the frame"))
new /obj/item/stack/material/steel(src.loc, 5)
qdel(src)
if(2)
@@ -52,11 +52,11 @@
if(B.board_type == "machine")
//VOREStation Addition End
if(istype(B, /obj/item/circuitboard/quantumpad) && istype(get_area(src), /area/shuttle))
to_chat(user, "<span class='warning'>This is too unstable a platform for a quantum pad to operate on!</span>")
to_chat(user, span_warning("This is too unstable a platform for a quantum pad to operate on!"))
return
//VOREStation Addition End
playsound(src, 'sound/items/Deconstruct.ogg', 50, 1)
to_chat(user, "<span class='notice'>You add the circuit board to the frame.</span>")
to_chat(user, span_notice("You add the circuit board to the frame."))
circuit = P
user.drop_item()
P.loc = src
@@ -74,11 +74,11 @@
update_desc()
to_chat(user, desc)
else
to_chat(user, "<span class='warning'>This frame does not accept circuit boards of this type!</span>")
to_chat(user, span_warning("This frame does not accept circuit boards of this type!"))
else
if(P.has_tool_quality(TOOL_WIRECUTTER))
playsound(src, P.usesound, 50, 1)
to_chat(user, "<span class='notice'>You remove the cables.</span>")
to_chat(user, span_notice("You remove the cables."))
state = 1
icon_state = "box_0"
var/obj/item/stack/cable_coil/A = new /obj/item/stack/cable_coil( src.loc )
@@ -91,9 +91,9 @@
circuit.loc = src.loc
circuit = null
if(components.len == 0)
to_chat(user, "<span class='notice'>You remove the circuit board.</span>")
to_chat(user, span_notice("You remove the circuit board."))
else
to_chat(user, "<span class='notice'>You remove the circuit board and other components.</span>")
to_chat(user, span_notice("You remove the circuit board and other components."))
for(var/obj/item/W in components)
W.loc = src.loc
desc = initial(desc)
@@ -157,4 +157,4 @@
break
to_chat(user, desc)
if(P && P.loc != src && !istype(P, /obj/item/stack/cable_coil))
to_chat(user, "<span class='warning'>You cannot add that component to the machine!</span>")
to_chat(user, span_warning("You cannot add that component to the machine!"))