mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] refactors most spans (#9139)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -25,11 +25,11 @@
|
||||
if(istype(W,/obj/item/stack/nanopaste))
|
||||
var/obj/item/stack/nanopaste/np = W
|
||||
if((supply.get_free_space() >= efficiency) && np.use(1))
|
||||
to_chat(user, "<span class='notice'>You convert some nanopaste into programmed nanites inside \the [src].</span>")
|
||||
to_chat(user, span_notice("You convert some nanopaste into programmed nanites inside \the [src]."))
|
||||
supply.add_reagent(id = "nifrepairnanites", amount = efficiency)
|
||||
update_icon()
|
||||
else if(supply.get_free_space() < efficiency)
|
||||
to_chat(user, "<span class='warning'>\The [src] is too full. Empty it into a container first.</span>")
|
||||
to_chat(user, span_warning("\The [src] is too full. Empty it into a container first."))
|
||||
return
|
||||
|
||||
/obj/item/nifrepairer/update_icon()
|
||||
@@ -43,15 +43,15 @@
|
||||
return 0
|
||||
|
||||
if(!supply || !supply.total_volume)
|
||||
to_chat(user, "<span class='warning'>[src] is empty. Feed it nanopaste.</span>")
|
||||
to_chat(user, span_warning("[src] is empty. Feed it nanopaste."))
|
||||
return 1
|
||||
|
||||
if(!target.reagents.get_free_space())
|
||||
to_chat(user, "<span class='warning'>[target] is already full.</span>")
|
||||
to_chat(user, span_warning("[target] is already full."))
|
||||
return 1
|
||||
|
||||
var/trans = supply.trans_to(target, 15)
|
||||
to_chat(user, "<span class='notice'>You transfer [trans] units of the programmed nanites to [target].</span>")
|
||||
to_chat(user, span_notice("You transfer [trans] units of the programmed nanites to [target]."))
|
||||
update_icon()
|
||||
return 1
|
||||
|
||||
@@ -59,6 +59,6 @@
|
||||
. = ..()
|
||||
if(Adjacent(user))
|
||||
if(supply.total_volume)
|
||||
. += "<span class='notice'>\The [src] contains [supply.total_volume] units of programmed nanites, ready for dispensing.</span>"
|
||||
. += span_notice("\The [src] contains [supply.total_volume] units of programmed nanites, ready for dispensing.")
|
||||
else
|
||||
. += "<span class='notice'>\The [src] is empty and ready to accept nanopaste.</span>"
|
||||
. += span_notice("\The [src] is empty and ready to accept nanopaste.")
|
||||
|
||||
Reference in New Issue
Block a user