mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 22:18:27 +01:00
refactors most spans
This commit is contained in:
@@ -47,22 +47,22 @@
|
||||
if (do_after(user, 20 * W.toolspeed))
|
||||
src.open =! src.open
|
||||
playsound(src, W.usesound, 50, 1)
|
||||
user.show_message(text("<span class='notice'>You [] the service panel.</span>", (src.open ? "open" : "close")))
|
||||
user.show_message(span_notice("You [src.open ? "open" : "close"] the service panel."))
|
||||
return
|
||||
if (istype(W, /obj/item/multitool) && (src.open == 1)&& (!src.l_hacking))
|
||||
user.show_message("<span class='notice'>Now attempting to reset internal memory, please hold.</span>", 1)
|
||||
user.show_message(span_notice("Now attempting to reset internal memory, please hold."), 1)
|
||||
src.l_hacking = 1
|
||||
if (do_after(usr, 100))
|
||||
if (prob(40))
|
||||
src.l_setshort = 1
|
||||
src.l_set = 0
|
||||
src.code = ""
|
||||
user.show_message("<span class='notice'>Internal memory reset. Please give it a few seconds to reinitialize.</span>", 1)
|
||||
user.show_message(span_notice("Internal memory reset. Please give it a few seconds to reinitialize."), 1)
|
||||
sleep(80)
|
||||
src.l_setshort = 0
|
||||
src.l_hacking = 0
|
||||
else
|
||||
user.show_message("<span class='warning'>Unable to reset internal memory.</span>", 1)
|
||||
user.show_message(span_warning("Unable to reset internal memory."), 1)
|
||||
src.l_hacking = 0
|
||||
else src.l_hacking = 0
|
||||
return
|
||||
@@ -82,7 +82,7 @@
|
||||
|
||||
/obj/item/storage/secure/AltClick(mob/user as mob)
|
||||
if (isliving(user) && Adjacent(user) && (src.locked == 1))
|
||||
to_chat(user, "<span class='warning'>[src] is locked and cannot be opened!</span>")
|
||||
to_chat(user, span_warning("[src] is locked and cannot be opened!"))
|
||||
else if (isliving(user) && Adjacent(user) && (!src.locked))
|
||||
src.open(usr)
|
||||
else
|
||||
@@ -170,7 +170,7 @@
|
||||
|
||||
/obj/item/storage/secure/briefcase/attack_hand(mob/user as mob)
|
||||
if ((src.loc == user) && (src.locked == 1))
|
||||
to_chat(user, "<span class='warning'>[src] is locked and cannot be opened!</span>")
|
||||
to_chat(user, span_warning("[src] is locked and cannot be opened!"))
|
||||
else if ((src.loc == user) && (!src.locked))
|
||||
src.open(usr)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user