mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 19:44:46 +01:00
refactors most spans
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
|
||||
/obj/structure/catwalk/proc/deconstruct(mob/user)
|
||||
playsound(src, 'sound/items/Welder.ogg', 100, 1)
|
||||
to_chat(user, "<span class='notice'>Slicing \the [src] joints ...</span>")
|
||||
to_chat(user, span_notice("Slicing \the [src] joints ..."))
|
||||
//Lattice would delete itself, but let's save ourselves a new obj
|
||||
if(isopenspace(loc) && user.a_intent == I_HELP)
|
||||
new /obj/structure/lattice/(src.loc)
|
||||
@@ -97,21 +97,21 @@
|
||||
hatch_open = !hatch_open
|
||||
if(hatch_open)
|
||||
playsound(src, 'sound/items/Crowbar.ogg', 100, 2)
|
||||
to_chat(user, "<span class='notice'>You pry open \the [src]'s maintenance hatch.</span>")
|
||||
to_chat(user, span_notice("You pry open \the [src]'s maintenance hatch."))
|
||||
update_falling()
|
||||
else
|
||||
playsound(src, 'sound/items/Deconstruct.ogg', 100, 2)
|
||||
to_chat(user, "<span class='notice'>You shut \the [src]'s maintenance hatch.</span>")
|
||||
to_chat(user, span_notice("You shut \the [src]'s maintenance hatch."))
|
||||
update_icon()
|
||||
return
|
||||
if(istype(C, /obj/item/stack/tile/floor) && !plated_tile)
|
||||
var/obj/item/stack/tile/floor/ST = C
|
||||
to_chat(user, "<span class='notice'>Placing tile...</span>")
|
||||
to_chat(user, span_notice("Placing tile..."))
|
||||
if (!do_after(user, 10))
|
||||
return
|
||||
if(!ST.use(1))
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You plate \the [src]</span>")
|
||||
to_chat(user, span_notice("You plate \the [src]"))
|
||||
name = "plated catwalk"
|
||||
plated_tile = C.type
|
||||
src.add_fingerprint(user)
|
||||
@@ -126,7 +126,7 @@
|
||||
/obj/structure/catwalk/take_damage(amount)
|
||||
health -= amount
|
||||
if(health <= 0)
|
||||
visible_message("<span class='warning'>\The [src] breaks down!</span>")
|
||||
visible_message(span_warning("\The [src] breaks down!"))
|
||||
playsound(src, 'sound/effects/grillehit.ogg', 50, 1)
|
||||
new /obj/item/stack/rods(get_turf(src))
|
||||
Destroy()
|
||||
|
||||
Reference in New Issue
Block a user