mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 15:08:34 +01:00
refactors most spans
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user