converts our spans (#9185)

This commit is contained in:
Kashargul
2024-10-07 20:47:23 +02:00
committed by GitHub
parent f4155aa973
commit a92a42b85b
162 changed files with 1360 additions and 1269 deletions
@@ -12,24 +12,24 @@
if(istype(thing, /obj/item/stack/rods) && construction_stage == 1)
var/obj/item/stack/rods = thing
if(rods.get_amount() < 4)
to_chat(user, "<span class='warning'>You need at least 4 rods for this task.</span>")
to_chat(user, span_warning("You need at least 4 rods for this task."))
return
rods.use(4)
user.visible_message("<span class='notice'>\The [user] puts some rods together in \the [src] hole.</span>")
user.visible_message(span_notice("\The [user] puts some rods together in \the [src] hole."))
increment_construction_stage()
return
if(istype(thing, /obj/item/weldingtool) && construction_stage == 2)
var/obj/item/weldingtool/welder = thing
if(!welder.isOn())
to_chat(user, "<span class='warning'>Turn it on first!</span>")
to_chat(user, span_warning("Turn it on first!"))
return
if(!welder.remove_fuel(0,user))
to_chat(user, "<span class='warning'>You need more fuel!</span>")
to_chat(user, span_warning("You need more fuel!"))
return
user.visible_message("<span class='notice'>\The [user] weld the rods to the head \the [src] together with \the [thing].</span>")
user.visible_message(span_notice("\The [user] weld the rods to the head \the [src] together with \the [thing]."))
playsound(src.loc, 'sound/items/Welder2.ogg', 100, 1)
spawn(5)
increment_construction_stage()
@@ -38,10 +38,10 @@
if(istype(thing, /obj/item/stack/rods) && construction_stage == 3)
var/obj/item/stack/rods = thing
if(rods.get_amount() < 4)
to_chat(user, "<span class='warning'>You need at least 4 rods for this task.</span>")
to_chat(user, span_warning("You need at least 4 rods for this task."))
return
rods.use(4)
user.visible_message("<span class='notice'>\The [user] jams \the [thing]'s into \the [src].</span>")
user.visible_message(span_notice("\The [user] jams \the [thing]'s into \the [src]."))
increment_construction_stage()
return
@@ -49,14 +49,14 @@
var/obj/item/weldingtool/welder = thing
if(!welder.isOn())
to_chat(user, "<span class='warning'>Turn it on first!</span>")
to_chat(user, span_warning("Turn it on first!"))
return
if(!welder.remove_fuel(0,user))
to_chat(user, "<span class='warning'>You need more fuel!</span>")
to_chat(user, span_warning("You need more fuel!"))
return
user.visible_message("<span class='notice'>\The [user] welds the rods together of the handle into place, forming a long irregular shaft.</span>")
user.visible_message(span_notice("\The [user] welds the rods together of the handle into place, forming a long irregular shaft."))
playsound(src.loc, 'sound/items/Welder2.ogg', 100, 1)
increment_construction_stage()
@@ -67,29 +67,29 @@
var/material/reinforcing_with = reinforcing.get_material()
if(reinforcing_with.name == DEFAULT_WALL_MATERIAL) // Steel
if(reinforcing.get_amount() < 3)
to_chat(user, "<span class='warning'>You need at least 3 [reinforcing.singular_name]\s for this task.</span>")
to_chat(user, span_warning("You need at least 3 [reinforcing.singular_name]\s for this task."))
return
reinforcing.use(3)
user.visible_message("<span class='notice'>\The [user] shapes some metal sheets around the rods.</span>")
user.visible_message(span_notice("\The [user] shapes some metal sheets around the rods."))
increment_construction_stage()
return
if(istype(thing, /obj/item/weldingtool) && construction_stage == 6)
var/obj/item/weldingtool/welder = thing
if(!welder.isOn())
to_chat(user, "<span class='warning'>Turn it on first!</span>")
to_chat(user, span_warning("Turn it on first!"))
return
if(!welder.remove_fuel(10,user))
to_chat(user, "<span class='warning'>You need more fuel!</span>")
to_chat(user, span_warning("You need more fuel!"))
return
user.visible_message("<span class='notice'>\The [user] heats up the metal sheets until it glows red.</span>")
user.visible_message(span_notice("\The [user] heats up the metal sheets until it glows red."))
playsound(src.loc, 'sound/items/Welder2.ogg', 100, 1)
increment_construction_stage()
return
if(istype(thing, /obj/item/tool/wrench) && construction_stage == 7)
user.visible_message("<span class='notice'>\The [user] whacks at \the [src] like a caveman, shaping the metal with \the [thing] into a rough handle, finishing it off.</span>")
user.visible_message(span_notice("\The [user] whacks at \the [src] like a caveman, shaping the metal with \the [thing] into a rough handle, finishing it off."))
increment_construction_stage()
playsound(src.loc, 'sound/weapons/smash5.ogg', 100, 1)
var/obj/item/material/twohanded/sledgehammer/sledge = new(loc)
@@ -115,10 +115,10 @@
. = ..(user,2)
if(.)
switch(construction_stage)
if(2) to_chat(user, "<span class='notice'>It has a bunch of rods sticking out of the hole.</span>")
if(3) to_chat(user, "<span class='notice'>It has a short rough metal shaft sticking to it, quite short.</span>")
if(4) to_chat(user, "<span class='notice'>It has a bunch of rods jammed into the shaft/</span>")
if(4) to_chat(user, "<span class='notice'>It has a pretty long rough metal shaft sticking out of it, it look hard to grab.</span>")
if(5) to_chat(user, "<span class='notice'>It has a few sheets bent in half across the handle.</span>")
if(6) to_chat(user, "<span class='notice'>It has red hot, pliable looking metal sheets spread over the handle. What a sloppy job.</span>")
if(7) to_chat(user, "<span class='notice'>It has a roughly shaped metal handle.</span>")
if(2) to_chat(user, span_notice("It has a bunch of rods sticking out of the hole."))
if(3) to_chat(user, span_notice("It has a short rough metal shaft sticking to it, quite short."))
if(4) to_chat(user, span_notice("It has a bunch of rods jammed into the shaft/"))
if(4) to_chat(user, span_notice("It has a pretty long rough metal shaft sticking out of it, it look hard to grab."))
if(5) to_chat(user, span_notice("It has a few sheets bent in half across the handle."))
if(6) to_chat(user, span_notice("It has red hot, pliable looking metal sheets spread over the handle. What a sloppy job."))
if(7) to_chat(user, span_notice("It has a roughly shaped metal handle."))