[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:
CHOMPStation2
2024-10-04 06:00:17 -07:00
committed by GitHub
parent 43ee646816
commit ab154b48b2
1511 changed files with 12497 additions and 12357 deletions

View File

@@ -53,9 +53,9 @@
. = ..()
if(attached_cell)
. += "<span class='notice'>\The [src] is loaded with a [attached_cell.name]. It is [round(attached_cell.percent())]% charged.</span>"
. += span_notice("\The [src] is loaded with a [attached_cell.name]. It is [round(attached_cell.percent())]% charged.")
else
. += "<span class='warning'>\The [src] does not appear to have a power source installed.</span>"
. += span_warning("\The [src] does not appear to have a power source installed.")
/obj/item/ammo_magazine/smart/update_icon()
if(attached_cell)
@@ -66,7 +66,7 @@
// Emagging lets you remove bullets from your bullet-making magazine
/obj/item/ammo_magazine/smart/emag_act(var/remaining_charges, var/mob/user)
if(!emagged)
to_chat(user, "<span class='notice'>You overload \the [src]'s security measures causing widespread destabilisation. It is likely you could empty \the [src] now.</span>")
to_chat(user, span_notice("You overload \the [src]'s security measures causing widespread destabilisation. It is likely you could empty \the [src] now."))
emagged = TRUE
can_remove_ammo = TRUE
return TRUE
@@ -75,7 +75,7 @@
/obj/item/ammo_magazine/smart/attackby(var/obj/item/I as obj, mob/user)
if(istype(I, /obj/item/cell/device))
if(attached_cell)
to_chat(user, "<span class='notice'>\The [src] already has a [attached_cell.name] attached.</span>")
to_chat(user, span_notice("\The [src] already has a [attached_cell.name] attached."))
return
else
to_chat(user, "You begin inserting \the [I] into \the [src].")
@@ -182,7 +182,7 @@
msg += "ammunition type."
if(change)
to_chat(user, "<span class='notice'>[msg]</span>")
to_chat(user, span_notice("[msg]"))
caliber = new_caliber
ammo_type = new_ammo_type
set_production_cost(ammo_type) // Update our cost
@@ -214,13 +214,13 @@
return
if(LAZYLEN(stored_ammo))
to_chat(usr, "<span class='warning'>You can't reset \the [src] unless it's empty!</span>")
to_chat(usr, span_warning("You can't reset \the [src] unless it's empty!"))
return
to_chat(usr, "<span class='notice'>You clear \the [src]'s data buffers.</span>")
to_chat(usr, span_notice("You clear \the [src]'s data buffers."))
caliber = null
ammo_type = null
production_cost = null
return
return