mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 14:08:44 +01:00
refactors most spans
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
update_icon()
|
||||
else
|
||||
if(busy)
|
||||
visible_message("<span class='notice'>[icon2html(src,viewers(src))] flashes: insufficient materials: [getLackingMaterials(D)].</span>")
|
||||
visible_message(span_notice("[icon2html(src,viewers(src))] flashes: insufficient materials: [getLackingMaterials(D)]."))
|
||||
busy = 0
|
||||
update_icon()
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
|
||||
/obj/machinery/r_n_d/protolathe/attackby(var/obj/item/O as obj, var/mob/user as mob)
|
||||
if(busy)
|
||||
to_chat(user, "<span class='notice'>\The [src] is busy. Please wait for completion of previous operation.</span>")
|
||||
to_chat(user, span_notice("\The [src] is busy. Please wait for completion of previous operation."))
|
||||
return 1
|
||||
if(default_deconstruction_screwdriver(user, O))
|
||||
if(linked_console)
|
||||
@@ -137,20 +137,20 @@
|
||||
if(istype(O, /obj/item/gripper/no_use/loader))
|
||||
return 0 //Sheet loaders weren't finishing attack(), this prevents the message "You can't stuff that gripper into this" without preventing the rest of the attack sequence from finishing
|
||||
if(panel_open)
|
||||
to_chat(user, "<span class='notice'>You can't load \the [src] while it's opened.</span>")
|
||||
to_chat(user, span_notice("You can't load \the [src] while it's opened."))
|
||||
return 1
|
||||
if(!linked_console)
|
||||
to_chat(user, "<span class='notice'>\The [src] must be linked to an R&D console first!</span>")
|
||||
to_chat(user, span_notice("\The [src] must be linked to an R&D console first!"))
|
||||
return 1
|
||||
if(!istype(O, /obj/item/stack/material))
|
||||
to_chat(user, "<span class='notice'>You cannot insert this item into \the [src]!</span>")
|
||||
to_chat(user, span_notice("You cannot insert this item into \the [src]!"))
|
||||
return 1
|
||||
if(stat)
|
||||
return 1
|
||||
|
||||
var/obj/item/stack/material/S = O
|
||||
if(!(S.material.name in materials))
|
||||
to_chat(user, "<span class='warning'>The [src] doesn't accept [S.material]!</span>")
|
||||
to_chat(user, span_warning("The [src] doesn't accept [S.material]!"))
|
||||
return
|
||||
|
||||
busy = 1
|
||||
@@ -168,9 +168,9 @@
|
||||
materials[S.material.name] += amnt
|
||||
S.use(1)
|
||||
count++
|
||||
to_chat(user, "<span class='filter_notice'>You insert [count] [sname] into the fabricator.</span>")
|
||||
to_chat(user, span_filter_notice("You insert [count] [sname] into the fabricator."))
|
||||
else
|
||||
to_chat(user, "<span class='filter_notice'>The fabricator cannot hold more [sname].</span>")
|
||||
to_chat(user, span_filter_notice("The fabricator cannot hold more [sname]."))
|
||||
busy = 0
|
||||
|
||||
var/stacktype = S.type
|
||||
|
||||
Reference in New Issue
Block a user