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