mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 05:27:39 +01:00
refactors most spans
This commit is contained in:
@@ -30,10 +30,10 @@
|
||||
if (H.hand)
|
||||
temp = H.organs_by_name["l_hand"]
|
||||
if(temp && !temp.is_usable())
|
||||
to_chat(user, "<span class='notice'>You try to move your [temp.name], but cannot!</span>")
|
||||
to_chat(user, span_notice("You try to move your [temp.name], but cannot!"))
|
||||
return
|
||||
|
||||
to_chat(user, "<span class='notice'>You pick up the [src].</span>")
|
||||
to_chat(user, span_notice("You pick up the [src]."))
|
||||
user.put_in_hands(src)
|
||||
|
||||
return
|
||||
@@ -45,7 +45,7 @@
|
||||
if (H.hand)
|
||||
temp = H.organs_by_name["l_hand"]
|
||||
if(temp && !temp.is_usable())
|
||||
to_chat(user, "<span class='notice'>You try to move your [temp.name], but cannot!</span>")
|
||||
to_chat(user, span_notice("You try to move your [temp.name], but cannot!"))
|
||||
return
|
||||
var/response = ""
|
||||
if(!papers.len > 0)
|
||||
@@ -75,9 +75,9 @@
|
||||
|
||||
P.loc = user.loc
|
||||
user.put_in_hands(P)
|
||||
to_chat(user, "<span class='notice'>You take [P] out of the [src].</span>")
|
||||
to_chat(user, span_notice("You take [P] out of the [src]."))
|
||||
else
|
||||
to_chat(user, "<span class='notice'>[src] is empty!</span>")
|
||||
to_chat(user, span_notice("[src] is empty!"))
|
||||
|
||||
add_fingerprint(user)
|
||||
return
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
user.drop_item()
|
||||
i.loc = src
|
||||
to_chat(user, "<span class='notice'>You put [i] in [src].</span>")
|
||||
to_chat(user, span_notice("You put [i] in [src]."))
|
||||
papers.Add(i)
|
||||
update_icon()
|
||||
amount++
|
||||
@@ -99,9 +99,9 @@
|
||||
. = ..()
|
||||
if(Adjacent(user))
|
||||
if(amount)
|
||||
. += "<span class='notice'>There " + (amount > 1 ? "are [amount] papers" : "is one paper") + " in the bin.</span>"
|
||||
. += span_notice("There " + (amount > 1 ? "are [amount] papers" : "is one paper") + " in the bin.")
|
||||
else
|
||||
. += "<span class='notice'>There are no papers in the bin.</span>"
|
||||
. += span_notice("There are no papers in the bin.")
|
||||
|
||||
/obj/item/paper_bin/update_icon()
|
||||
if(amount < 1)
|
||||
|
||||
Reference in New Issue
Block a user