mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 03:27:46 +01:00
refactors most spans
This commit is contained in:
@@ -60,7 +60,7 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid).
|
||||
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()
|
||||
|
||||
@@ -105,7 +105,7 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid).
|
||||
|
||||
/obj/machinery/r_n_d/circuit_imprinter/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)
|
||||
@@ -119,7 +119,7 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid).
|
||||
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, "\The [src] must be linked to an R&D console first.")
|
||||
@@ -127,18 +127,18 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid).
|
||||
if(O.is_open_container())
|
||||
return 0
|
||||
if(!istype(O, /obj/item/stack/material)) //Previously checked for specific material sheets, for some reason? Made the check on 133 redundant.
|
||||
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
|
||||
|
||||
if(TotalMaterials() + SHEET_MATERIAL_AMOUNT > max_material_storage)
|
||||
to_chat(user, "<span class='notice'>\The [src]'s material bin is full. Please remove material before adding more.</span>")
|
||||
to_chat(user, span_notice("\The [src]'s material bin is full. Please remove material before adding more."))
|
||||
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
|
||||
@@ -158,9 +158,9 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid).
|
||||
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
|
||||
|
||||
updateUsrDialog()
|
||||
|
||||
Reference in New Issue
Block a user