mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-19 12:13:38 +01:00
converts our spans (#9185)
This commit is contained in:
@@ -66,10 +66,10 @@
|
||||
var/datum/component/gargoyle/comp = GetComponent(/datum/component/gargoyle)
|
||||
if (comp)
|
||||
if (comp.energy <= 0 && isturf(loc))
|
||||
to_chat(src, "<span class='danger'>You suddenly turn into a [comp.identifier] as you run out of energy!</span>")
|
||||
to_chat(src, span_danger("You suddenly turn into a [comp.identifier] as you run out of energy!"))
|
||||
else if (comp.cooldown > world.time)
|
||||
var/time_to_wait = (comp.cooldown - world.time) / (1 SECONDS)
|
||||
to_chat(src, "<span class='warning'>You can't transform just yet again! Wait for another [round(time_to_wait,0.1)] seconds!</span>")
|
||||
to_chat(src, span_warning("You can't transform just yet again! Wait for another [round(time_to_wait,0.1)] seconds!"))
|
||||
return
|
||||
if (istype(loc, /obj/structure/gargoyle))
|
||||
qdel(loc)
|
||||
@@ -89,7 +89,7 @@
|
||||
comp.paused = TRUE
|
||||
comp.paused_loc = loc
|
||||
comp.RegisterSignal(src, COMSIG_ATOM_ENTERING, /datum/component/gargoyle/proc/unpause)
|
||||
to_chat(src, "<span class='notice'>You start conserving your energy.</span>")
|
||||
to_chat(src, span_notice("You start conserving your energy."))
|
||||
|
||||
/mob/living/carbon/human/proc/gargoyle_checkenergy()
|
||||
set name = "Gargoyle - Check Energy"
|
||||
@@ -98,4 +98,4 @@
|
||||
|
||||
var/datum/component/gargoyle/comp = GetComponent(/datum/component/gargoyle)
|
||||
if (comp)
|
||||
to_chat(src, "<span class='notice'>You have [round(comp.energy,0.01)] energy remaining. It is currently [comp.paused ? "stable" : (comp.transformed ? "increasing" : "decreasing")].</span>")
|
||||
to_chat(src, span_notice("You have [round(comp.energy,0.01)] energy remaining. It is currently [comp.paused ? "stable" : (comp.transformed ? "increasing" : "decreasing")]."))
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
orbiter.SpinAnimation(rotation_speed, -1, clockwise, rotation_segments)
|
||||
|
||||
orbiter.forceMove(get_turf(parent))
|
||||
to_chat(orbiter, "<span class='notice'>Now orbiting [parent].</span>")
|
||||
to_chat(orbiter, span_notice("Now orbiting [parent]."))
|
||||
|
||||
/datum/component/orbiter/proc/end_orbit(atom/movable/orbiter, refreshing=FALSE)
|
||||
if(!orbiters[orbiter])
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
/datum/modifier/aura/xenoqueenbuff
|
||||
name = "Adrenal Surge"
|
||||
on_created_text = "<span class='notice'>The influence of a nearby Xenomorph Queen strengthens your body... </span>"
|
||||
on_expired_text = "<span class='warning'>You feel the influence of the Queen slip away, causing your body to relax.</span>"
|
||||
on_created_text = span_notice("The influence of a nearby Xenomorph Queen strengthens your body... ")
|
||||
on_expired_text = span_warning("You feel the influence of the Queen slip away, causing your body to relax.")
|
||||
stacks = MODIFIER_STACK_FORBID
|
||||
aura_max_distance = 7 // Viewrange.
|
||||
mob_overlay_state = "purple_electricity_constant"
|
||||
@@ -58,8 +58,8 @@
|
||||
if(X.aura_active)
|
||||
STOP_PROCESSING(SSprocessing,X)
|
||||
X.aura_active = 0
|
||||
to_chat (src, "<span class = 'notice'>You cease empowering those around you.</span>")
|
||||
to_chat (src, span_notice("You cease empowering those around you."))
|
||||
else
|
||||
START_PROCESSING(SSprocessing,X)
|
||||
X.aura_active = 1
|
||||
to_chat (src, "<span class = 'notice'>You begin empowering those around you.</span>")
|
||||
to_chat (src, span_notice("You begin empowering those around you."))
|
||||
|
||||
@@ -220,7 +220,7 @@
|
||||
var/atom/target_zone = get_edge_target_turf(user,get_dir(user, target))
|
||||
if(!target.anchored)
|
||||
target.throw_at(target_zone, 6, 2, user, FALSE)
|
||||
user.visible_message("<span class='warning'>\The [src] discharges with a thunderous boom!</span>")
|
||||
user.visible_message(span_warning("\The [src] discharges with a thunderous boom!"))
|
||||
playsound(src, 'sound/weapons/resonator_blast.ogg', 100, 1, -1)
|
||||
|
||||
//Eel stuff
|
||||
@@ -247,10 +247,10 @@
|
||||
if(.)
|
||||
return .
|
||||
if(default_parry_check(user, attacker, damage_source) && prob(defend_chance))
|
||||
user.visible_message("<span class='danger'>\The [user] parries [attack_text] with \the [src]!</span>")
|
||||
user.visible_message(span_danger("\The [user] parries [attack_text] with \the [src]!"))
|
||||
return 1
|
||||
if(unique_parry_check(user, attacker, damage_source) && prob(projectile_parry_chance))
|
||||
user.visible_message("<span class='danger'>\The [user] deflects [attack_text] with \the [src]!</span>")
|
||||
user.visible_message(span_danger("\The [user] deflects [attack_text] with \the [src]!"))
|
||||
return 1
|
||||
|
||||
return 0
|
||||
@@ -271,7 +271,7 @@
|
||||
if(H && H.gloves == src)
|
||||
wearer = H
|
||||
if(wearer.can_feel_pain())
|
||||
to_chat(H, "<span class='danger'>You feel a stabbing sensation in your hands as you slide \the [src] on!</span>")
|
||||
to_chat(H, span_danger("You feel a stabbing sensation in your hands as you slide \the [src] on!"))
|
||||
wearer.custom_pain("You feel a sharp pain in your hands!",1)
|
||||
..()
|
||||
|
||||
@@ -279,7 +279,7 @@
|
||||
..()
|
||||
if(wearer)
|
||||
if(wearer.can_feel_pain())
|
||||
to_chat(wearer, "<span class='danger'>You feel the hypodermic needles as you slide \the [src] off!</span>")
|
||||
to_chat(wearer, span_danger("You feel the hypodermic needles as you slide \the [src] off!"))
|
||||
wearer.custom_pain("Your hands hurt like hell!",1)
|
||||
wearer = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user