mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-03 05:52:43 +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:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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."))
|
||||
|
||||
. = ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user