[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

@@ -100,7 +100,7 @@ var/bomb_set
var/obj/item/weldingtool/WT = O.get_welder()
if(!WT.isOn()) return
if(WT.get_fuel() < 5) // uses up 5 fuel.
to_chat(user, "<span class='warning'>You need more fuel to complete this task.</span>")
to_chat(user, span_warning("You need more fuel to complete this task."))
return
user.visible_message("[user] starts cutting loose the anchoring bolt covers on [src].", "You start cutting loose the anchoring bolt covers with [O]...")
@@ -128,7 +128,7 @@ var/bomb_set
var/obj/item/weldingtool/WT = O.get_welder()
if(!WT.isOn()) return
if(WT.get_fuel() < 5) // uses up 5 fuel.
to_chat(user, "<span class='warning'>You need more fuel to complete this task.</span>")
to_chat(user, span_warning("You need more fuel to complete this task."))
return
user.visible_message("[user] starts cutting apart the anchoring system sealant on [src].", "You start cutting apart the anchoring system's sealant with [O]...")
@@ -166,7 +166,7 @@ var/bomb_set
/obj/machinery/nuclearbomb/attack_hand(mob/user as mob)
if(extended)
if(!ishuman(user))
to_chat(user, "<span class='warning'>You don't have the dexterity to do this!</span>")
to_chat(user, span_warning("You don't have the dexterity to do this!"))
return 1
user.set_machine(src)
@@ -192,9 +192,9 @@ var/bomb_set
else if(deployable)
if(removal_stage < 5)
anchored = TRUE
visible_message("<span class='warning'>With a steely snap, bolts slide out of [src] and anchor it to the flooring!</span>")
visible_message(span_warning("With a steely snap, bolts slide out of [src] and anchor it to the flooring!"))
else
visible_message("<span class='warning'>\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut.</span>")
visible_message(span_warning("\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut."))
if(!lighthack)
flick("nuclearbombc", src)
icon_state = "nuclearbomb1"
@@ -219,14 +219,14 @@ var/bomb_set
if(!usr.canmove || usr.stat || usr.restrained())
return
if(!ishuman(usr))
to_chat(usr, "<span class='warning'>You don't have the dexterity to do this!</span>")
to_chat(usr, span_warning("You don't have the dexterity to do this!"))
return 1
if(deployable)
to_chat(usr, "<span class='warning'>You close several panels to make [src] undeployable.</span>")
to_chat(usr, span_warning("You close several panels to make [src] undeployable."))
deployable = 0
else
to_chat(usr, "<span class='warning'>You adjust some panels to make [src] deployable.</span>")
to_chat(usr, span_warning("You adjust some panels to make [src] deployable."))
deployable = 1
return
@@ -255,12 +255,12 @@ var/bomb_set
safety = !safety
spawn(100) safety = !safety
if(safety == 1)
visible_message("<span class='notice'>The [src] quiets down.</span>")
visible_message(span_notice("The [src] quiets down."))
if(!lighthack)
if(icon_state == "nuclearbomb2")
icon_state = "nuclearbomb1"
else
visible_message("<span class='notice'>The [src] emits a quiet whirling noise!</span>")
visible_message(span_notice("The [src] emits a quiet whirling noise!"))
if(href_list["act"] == "wire")
var/obj/item/I = usr.get_active_hand()
if(!I.has_tool_quality(TOOL_WIRECUTTER))
@@ -316,7 +316,7 @@ var/bomb_set
if(timing == -1.0)
return
if(safety)
to_chat(usr, "<span class='warning'>The safety is still on.</span>")
to_chat(usr, span_warning("The safety is still on."))
return
timing = !(timing)
if(timing)
@@ -343,14 +343,14 @@ var/bomb_set
if(removal_stage == 5)
anchored = FALSE
visible_message("<span class='warning'>\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut.</span>")
visible_message(span_warning("\The [src] makes a highly unpleasant crunching noise. It looks like the anchoring bolts have been cut."))
return
anchored = !(anchored)
if(anchored)
visible_message("<span class='warning'>With a steely snap, bolts slide out of [src] and anchor it to the flooring.</span>")
visible_message(span_warning("With a steely snap, bolts slide out of [src] and anchor it to the flooring."))
else
visible_message("<span class='warning'>The anchoring bolts slide back into the depths of [src].</span>")
visible_message(span_warning("The anchoring bolts slide back into the depths of [src]."))
add_fingerprint(usr)
for(var/mob/M in viewers(1, src))