mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +01:00
refactors most spans
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
else if(W.has_tool_quality(TOOL_WRENCH))
|
||||
playsound(src, W.usesound, 50, 1)
|
||||
anchored = !anchored
|
||||
to_chat(user, "<span class='notice'>You [anchored ? "wrench" : "unwrench"] \the [src].</span>")
|
||||
to_chat(user, span_notice("You [anchored ? "wrench" : "unwrench"] \the [src]."))
|
||||
return
|
||||
else if(default_part_replacement(user, W))
|
||||
return
|
||||
@@ -55,7 +55,7 @@
|
||||
if(inoperable())
|
||||
return // Need powah!
|
||||
if(paperamount == max_paper)
|
||||
to_chat(user, "<span class='warning'>\The [src] is full; please empty it before you continue.</span>")
|
||||
to_chat(user, span_warning("\The [src] is full; please empty it before you continue."))
|
||||
return
|
||||
paperamount += paper_result
|
||||
user.drop_from_inventory(W)
|
||||
@@ -63,7 +63,7 @@
|
||||
playsound(src, 'sound/items/pshred.ogg', 75, 1)
|
||||
flick(shred_anim, src)
|
||||
if(paperamount > max_paper)
|
||||
to_chat(user,"<span class='danger'>\The [src] was too full, and shredded paper goes everywhere!</span>")
|
||||
to_chat(user,span_danger("\The [src] was too full, and shredded paper goes everywhere!"))
|
||||
for(var/i=(paperamount-max_paper);i>0;i--)
|
||||
var/obj/item/shreddedp/SP = get_shredded_paper()
|
||||
SP.loc = get_turf(src)
|
||||
@@ -82,7 +82,7 @@
|
||||
return
|
||||
|
||||
if(!paperamount)
|
||||
to_chat(usr, "<span class='notice'>\The [src] is empty.</span>")
|
||||
to_chat(usr, span_notice("\The [src] is empty."))
|
||||
return
|
||||
|
||||
empty_bin(usr)
|
||||
@@ -94,7 +94,7 @@
|
||||
empty_into = null
|
||||
|
||||
if(empty_into && empty_into.contents.len >= empty_into.storage_slots)
|
||||
to_chat(user, "<span class='notice'>\The [empty_into] is full.</span>")
|
||||
to_chat(user, span_notice("\The [empty_into] is full."))
|
||||
return
|
||||
|
||||
while(paperamount)
|
||||
@@ -106,12 +106,12 @@
|
||||
break
|
||||
if(empty_into)
|
||||
if(paperamount)
|
||||
to_chat(user, "<span class='notice'>You fill \the [empty_into] with as much shredded paper as it will carry.</span>")
|
||||
to_chat(user, span_notice("You fill \the [empty_into] with as much shredded paper as it will carry."))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You empty \the [src] into \the [empty_into].</span>")
|
||||
to_chat(user, span_notice("You empty \the [src] into \the [empty_into]."))
|
||||
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You empty \the [src].</span>")
|
||||
to_chat(user, span_notice("You empty \the [src]."))
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/papershredder/proc/get_shredded_paper()
|
||||
@@ -166,15 +166,15 @@
|
||||
if(user.restrained())
|
||||
return
|
||||
if(!P.lit)
|
||||
to_chat(user, "<span class='warning'>\The [P] is not lit.</span>")
|
||||
to_chat(user, span_warning("\The [P] is not lit."))
|
||||
return
|
||||
user.visible_message("<span class='warning'>\The [user] holds \the [P] up to \the [src]. It looks like [TU.he] [TU.is] trying to burn it!</span>", \
|
||||
"<span class='warning'>You hold \the [P] up to \the [src], burning it slowly.</span>")
|
||||
user.visible_message(span_warning("\The [user] holds \the [P] up to \the [src]. It looks like [TU.he] [TU.is] trying to burn it!"), \
|
||||
span_warning("You hold \the [P] up to \the [src], burning it slowly."))
|
||||
if(!do_after(user,20))
|
||||
to_chat(user, "<span class='warning'>You must hold \the [P] steady to burn \the [src].</span>")
|
||||
to_chat(user, span_warning("You must hold \the [P] steady to burn \the [src]."))
|
||||
return
|
||||
user.visible_message("<span class='danger'>\The [user] burns right through \the [src], turning it to ash. It flutters through the air before settling on the floor in a heap.</span>", \
|
||||
"<span class='danger'>You burn right through \the [src], turning it to ash. It flutters through the air before settling on the floor in a heap.</span>")
|
||||
user.visible_message(span_danger("\The [user] burns right through \the [src], turning it to ash. It flutters through the air before settling on the floor in a heap."), \
|
||||
span_danger("You burn right through \the [src], turning it to ash. It flutters through the air before settling on the floor in a heap."))
|
||||
FireBurn()
|
||||
|
||||
/obj/item/shreddedp/proc/FireBurn()
|
||||
|
||||
Reference in New Issue
Block a user