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
+5 -5
View File
@@ -27,9 +27,9 @@
for(var/spell/S in M.spell_list)
if(!istype(S, /spell/aoe_turf/charge))
S.charge_counter = S.charge_max
to_chat(M, "<span class='notice'>You feel raw magic flowing through you, it feels good!</span>")
to_chat(M, span_notice("You feel raw magic flowing through you, it feels good!"))
else
to_chat(M, "<span class='notice'>You feel very strange for a moment, but then it passes.</span>")
to_chat(M, span_notice("You feel very strange for a moment, but then it passes."))
return M
/spell/aoe_turf/charge/proc/cast_charge(var/atom/target)
@@ -47,7 +47,7 @@
if(istype(target, /obj/item/spellbook/oneuse))
var/obj/item/spellbook/oneuse/I = target
if(prob(50))
I.visible_message("<span class='warning'>[I] catches fire!</span>")
I.visible_message(span_warning("[I] catches fire!"))
qdel(I)
else
I.used = 0
@@ -65,5 +65,5 @@
if(!charged_item)
return 0
else
charged_item.visible_message("<span class='notice'>[charged_item] suddenly sparks with energy!</span>")
return 1
charged_item.visible_message(span_notice("[charged_item] suddenly sparks with energy!"))
return 1
@@ -45,7 +45,7 @@ How they spawn stuff is decided by behaviour vars, which are explained below
var/atom/summoned_object
if(ispath(summoned_object_type,/turf))
if(istype(get_turf(user),/turf/simulated/shuttle) || istype(spawn_place, /turf/simulated/shuttle))
to_chat(user, "<span class='warning'>You can't build things on shuttles!</span>")
to_chat(user, span_warning("You can't build things on shuttles!"))
continue
spawn_place.ChangeTurf(summoned_object_type)
summoned_object = spawn_place
@@ -72,4 +72,4 @@ How they spawn stuff is decided by behaviour vars, which are explained below
return
/spell/aoe_turf/conjure/proc/conjure_animation(var/atom/movable/overlay/animation, var/turf/target)
qdel(animation)
qdel(animation)