[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

@@ -7,7 +7,7 @@
/obj/item/cell/device/weapon/recharge/alien/attack_self(var/mob/user)
user.remove_from_mob(src)
to_chat(user, "<span class='notice'>You swap [src] to 'machinery cell' mode.</span>")
to_chat(user, span_notice("You swap [src] to 'machinery cell' mode."))
var/obj/item/cell/newcell = new swaps_to(null)
user.put_in_active_hand(newcell)
var/percentage = charge/maxcharge
@@ -32,7 +32,7 @@
/obj/item/cell/void/attack_self(var/mob/user)
user.remove_from_mob(src)
to_chat(user, "<span class='notice'>You swap [src] to 'device cell' mode.</span>")
to_chat(user, span_notice("You swap [src] to 'device cell' mode."))
var/obj/item/cell/newcell = new swaps_to(null)
user.put_in_active_hand(newcell)
var/percentage = charge/maxcharge

View File

@@ -66,7 +66,7 @@
var/obj/item/plastique/C4 = locate() in get_turf(src)
if(C4)
C4.visible_message("<span class='danger'>The current fries \the [C4]!</span>")
C4.visible_message(span_danger("The current fries \the [C4]!"))
if(prob(10))
C4.explode(get_turf(src))

View File

@@ -225,11 +225,11 @@
if(H.nutrition <= amount)
use(user,H)
else
to_chat(user,"<span class='warning'>The difference in potential is too great. [user == M ? "You have" : "[H] has"] too much charge to use such a small battery.</span>")
to_chat(user,span_warning("The difference in potential is too great. [user == M ? "You have" : "[H] has"] too much charge to use such a small battery."))
else if(M == user)
to_chat(user,"<span class='warning'>You lick the cell, and your tongue tingles slightly.</span>")
to_chat(user,span_warning("You lick the cell, and your tongue tingles slightly."))
else
to_chat(user,"<span class='warning'>This cell is meant for use on humanoid synthetics only.</span>")
to_chat(user,span_warning("This cell is meant for use on humanoid synthetics only."))
. = ..()