converts our spans (#9185)

This commit is contained in:
Kashargul
2024-10-07 20:47:23 +02:00
committed by GitHub
parent f4155aa973
commit a92a42b85b
162 changed files with 1360 additions and 1269 deletions
@@ -12,10 +12,10 @@
if(istype(W, /obj/item/ammo_casing))
var/obj/item/ammo_casing/C = W
if(C.caliber != caliber)
to_chat(user, "<span class='warning'>[C] does not fit into [src].</span>")
to_chat(user, span_warning("[C] does not fit into [src]."))
return
if(stored_ammo.len >= max_ammo)
to_chat(user, "<span class='warning'>[src] is full!</span>")
to_chat(user, span_warning("[src] is full!"))
return
user.remove_from_mob(C)
C.forceMove(src)
@@ -24,13 +24,13 @@
if(istype(W, /obj/item/ammo_magazine))
var/obj/item/ammo_magazine/L = W
if(L.caliber != caliber)
to_chat(user, "<span class='warning'>The ammo in [L] does not fit into [src].</span>")
to_chat(user, span_warning("The ammo in [L] does not fit into [src]."))
return
if(!L.stored_ammo.len)
to_chat(user, "<span class='warning'>There's no more ammo [L]!</span>")
to_chat(user, span_warning("There's no more ammo [L]!"))
return
if(stored_ammo.len >= max_ammo)
to_chat(user, "<span class='warning'>[src] is full!</span>")
to_chat(user, span_warning("[src] is full!"))
return
while(L.stored_ammo.len && stored_ammo.len < max_ammo)
var/obj/item/ammo_casing/AC = L.stored_ammo[1] //select the next casing.
@@ -33,8 +33,8 @@
recharging = 1
update_icon()
playsound(src,'modular_chomp/sound/weapons/clockwork/clockwork_cock.ogg',25,1)
user.visible_message("<span class='notice'>[user] pulls the charging handle on \the [src] and it whirrs to life!</span>", \
"<span class='notice'>You pull the charging handle on \the [src] and begin the reloading sequence.</span>")
user.visible_message(span_notice("[user] pulls the charging handle on \the [src] and it whirrs to life!"), \
span_notice("You pull the charging handle on \the [src] and begin the reloading sequence."))
playsound(src,'modular_chomp/sound/weapons/clockwork/cwc_rifle_fabricate.ogg',25,5)
while(recharging)
if(!do_after(user, 50, src))
@@ -4,12 +4,12 @@
var/mob/living/L = user
if(istype(L))
if(L.has_modifier_of_type(/datum/modifier/underwater_stealth))
to_chat(user,"<span class='warning'>You cannot use guns whilst hiding underwater!</span>")
to_chat(user,span_warning("You cannot use guns whilst hiding underwater!"))
return 0
else if(L.has_modifier_of_type(/datum/modifier/rednet))
to_chat(user,"<span class='warning'>Your gun refuses to fire!</span>")
to_chat(user,span_warning("Your gun refuses to fire!"))
return 0
else if(L.has_modifier_of_type(/datum/modifier/trait/thickdigits))
to_chat(user,"<span class='warning'>Your hands can't pull the trigger!!</span>")
to_chat(user,span_warning("Your hands can't pull the trigger!!"))
return 0
return ..()
@@ -68,7 +68,7 @@
/obj/item/projectile/bullet/magnetic/supercannon/on_hit(var/atom/target, var/blocked = 0, var/def_zone = null)
if(istype(target,/turf/simulated/wall) || istype(target,/mob/living))
target.visible_message("<span class='danger'>The [src] burns a perfect hole through \the [target] with a blinding flash!</span>")
target.visible_message(span_danger("The [src] burns a perfect hole through \the [target] with a blinding flash!"))
playsound(target, 'sound/effects/teleport.ogg', 40, 0)
return ..(target, blocked, def_zone)
@@ -92,7 +92,7 @@
/obj/item/gun/energy/elementalray/emag_act(var/remaining_charges, var/mob/user)
..()
to_chat(user, "<span class='notice'>You short circuit the internal locking mechanisms of \the [src]!</span>")
to_chat(user, span_notice("You short circuit the internal locking mechanisms of \the [src]!"))
firemodes = list(
list(mode_name="fire", burst=1, fire_delay=15, projectile_type=/obj/item/projectile/bullet/flamegun, charge_cost = 160),
list(mode_name="lighting", burst=1, fire_delay=20, projectile_type=/obj/item/projectile/beam/lightingsurge, charge_cost = 480),
@@ -132,8 +132,8 @@
desc = "You are covered in acid"
mob_overlay_state = "poisoned"
on_created_text = "<span class='warning'>You are covered in muck...</span>"
on_expired_text = "<span class='notice'>You are no longer covered in muck.</span>"
on_created_text = span_warning("You are covered in muck...")
on_expired_text = span_notice("You are no longer covered in muck.")
stacks = MODIFIER_STACK_ALLOWED
slowdown = 0.2
@@ -187,4 +187,4 @@
submunition_spread_max = 1200
submunition_spread_min = 200
submunitions = list(/obj/item/projectile/energy/redlighting = 3)
hud_state = "laser_sniper"
hud_state = "laser_sniper"