refactors most spans

This commit is contained in:
Kashargul
2024-10-02 21:10:31 +02:00
parent 5417c7772c
commit a2c673ab7a
1517 changed files with 12436 additions and 12347 deletions
@@ -24,7 +24,7 @@
if(H.isSynthetic() || H.does_not_breathe) // It's hard to choke a robot or something that doesn't breathe.
on_expire()
return
to_chat(H, "<span class='warning'>You are having difficulty breathing!</span>")
to_chat(H, span_warning("You are having difficulty breathing!"))
var/pulses = 3
var/warned_victim = 0
while(pulses)
@@ -68,7 +68,7 @@
//to_world("Predicted hardcrit.")
return 1
else if(predicted_damage >= victim.species.total_health / 2) // Or perhaps we're gonna go into 'oxy crit'.
to_chat(victim, "<span class='danger'>You feel really light-headed, and everything seems to be fading...</span>")
to_chat(victim, span_danger("You feel really light-headed, and everything seems to be fading..."))
//to_world("Predicted oxycrit.")
return 1
//If we're at this point, the spell is not going to result in critting.
@@ -41,7 +41,7 @@
if(!allow_stacking)
for(var/obj/item/inserted_spell/IS in L.contents)
if(IS.type == inserting)
to_chat(user, "<span class='warning'>\The [L] is already affected by \the [src].</span>")
to_chat(user, span_warning("\The [L] is already affected by \the [src]."))
return
var/obj/item/inserted_spell/inserted = new inserting(L,user,src)
inserted.spell_power_at_creation = calculate_spell_power(1.0)
@@ -56,4 +56,4 @@
/obj/item/spell/insert/on_ranged_cast(atom/hit_atom, mob/user)
if(istype(hit_atom, /mob/living))
var/mob/living/L = hit_atom
insert(L,user)
insert(L,user)