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
+8 -8
View File
@@ -227,7 +227,7 @@
var/newtag = text2num(sanitizeSafe(tgui_input_text(user, "Enter new ID number or leave empty to cancel.", "Assign ID number", null, 4), 4))
if(newtag)
name = "[initial(name)] #[newtag]"
to_chat(user, "<span class='notice'>You changed the drill ID to: [newtag]</span>")
to_chat(user, span_notice("You changed the drill ID to: [newtag]"))
else
name = "[initial(name)]"
to_chat(user, span_notice("You removed the drill's ID and any extraneous labels."))
@@ -280,9 +280,9 @@
else
visible_message("<b>\The [src]</b> shudders to a grinding halt.")
else
to_chat(user, "<span class='notice'>The drill is unpowered.</span>")
to_chat(user, span_notice("The drill is unpowered."))
else
to_chat(user, "<span class='notice'>Turning on a piece of industrial machinery without sufficient bracing or wires exposed is a bad idea.</span>")
to_chat(user, span_notice("Turning on a piece of industrial machinery without sufficient bracing or wires exposed is a bad idea."))
update_icon()
@@ -405,9 +405,9 @@
B.stored_ore[ore] += ore_amount // Add the ore to the machine.
stored_ore[ore] = 0 // Set the value of the ore in the satchel to 0.
current_capacity = 0 // Set the amount of ore in the drill to 0.
to_chat(usr, "<span class='notice'>You unload the drill's storage cache into the ore box.</span>")
to_chat(usr, span_notice("You unload the drill's storage cache into the ore box."))
else
to_chat(usr, "<span class='notice'>You must move an ore box up to the drill before you can unload it.</span>")
to_chat(usr, span_notice("You must move an ore box up to the drill before you can unload it."))
/obj/machinery/mining/brace
@@ -435,7 +435,7 @@
/obj/machinery/mining/brace/attackby(obj/item/W as obj, mob/user as mob)
if(connected && connected.active)
to_chat(user, "<span class='notice'>You can't work with the brace of a running drill!</span>")
to_chat(user, span_notice("You can't work with the brace of a running drill!"))
return
if(default_deconstruction_screwdriver(user, W))
@@ -448,11 +448,11 @@
if(W.has_tool_quality(TOOL_WRENCH))
if(istype(get_turf(src), /turf/space))
to_chat(user, "<span class='notice'>You can't anchor something to empty space. Idiot.</span>")
to_chat(user, span_notice("You can't anchor something to empty space. Idiot."))
return
playsound(src, W.usesound, 100, 1)
to_chat(user, "<span class='notice'>You [anchored ? "un" : ""]anchor the brace.</span>")
to_chat(user, span_notice("You [anchored ? "un" : ""]anchor the brace."))
anchored = !anchored
if(anchored)
+2 -2
View File
@@ -11,7 +11,7 @@
var/exact = FALSE
/obj/item/mining_scanner/attack_self(mob/user as mob)
to_chat(user, "<span class='notice'>You begin sweeping \the [src] about, scanning for metal deposits.</span>")
to_chat(user, span_notice("You begin sweeping \the [src] about, scanning for metal deposits."))
playsound(src, 'sound/items/goggles_charge.ogg', 50, 1, -6)
if(!do_after(user, scan_time))
@@ -87,4 +87,4 @@
var/custom_range = tgui_input_list(usr, "Scanner Range","Pick a range to scan. ", list(0,1,2,3,4,5,6,7))
if(custom_range)
range = custom_range
to_chat(usr, "<span class='notice'>Scanner will now look up to [range] tile(s) away.</span>")
to_chat(usr, span_notice("Scanner will now look up to [range] tile(s) away."))