[MIRROR] refactors most spans (#9139)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
CHOMPStation2
2024-10-04 06:00:17 -07:00
committed by GitHub
parent 43ee646816
commit ab154b48b2
1511 changed files with 12497 additions and 12357 deletions

View File

@@ -28,16 +28,16 @@ var/list/ventcrawl_machinery = list(
if(!client)
return FALSE
if(!(/mob/living/proc/ventcrawl in verbs))
to_chat(src, "<span class='warning'>You don't possess the ability to ventcrawl!</span>")
to_chat(src, span_warning("You don't possess the ability to ventcrawl!"))
return FALSE
if(pulling)
to_chat(src, "<span class='warning'>You cannot bring \the [pulling] into the vent with you!</span>")
to_chat(src, span_warning("You cannot bring \the [pulling] into the vent with you!"))
return FALSE
if(incapacitated())
to_chat(src, "<span class='warning'>You cannot ventcrawl in your current state!</span>")
to_chat(src, span_warning("You cannot ventcrawl in your current state!"))
return FALSE
if(buckled)
to_chat(src, "<span class='warning'>You cannot ventcrawl while buckled!</span>")
to_chat(src, span_warning("You cannot ventcrawl while buckled!"))
return FALSE
if(restrict_vore_ventcrawl)
var/foundstuff = FALSE
@@ -46,7 +46,7 @@ var/list/ventcrawl_machinery = list(
foundstuff = TRUE
break
if(foundstuff)
to_chat(src, "<span class='warning'>You cannot ventcrawl while full!</span>")
to_chat(src, span_warning("You cannot ventcrawl while full!"))
return FALSE
return ventcrawl_carry()
@@ -60,7 +60,7 @@ var/list/ventcrawl_machinery = list(
/mob/living/simple_mob/slime/xenobio/can_ventcrawl()
if(victim)
to_chat(src, "<span class='warning'>You cannot ventcrawl while feeding.</span>")
to_chat(src, span_warning("You cannot ventcrawl while feeding."))
return FALSE
. = ..()
@@ -103,7 +103,7 @@ var/list/ventcrawl_machinery = list(
/mob/living/proc/ventcrawl_carry()
for(var/atom/A in contents)
if(!is_allowed_vent_crawl_item(A))
to_chat(src, "<span class='warning'>You can't carry \the [A] while ventcrawling!</span>")
to_chat(src, span_warning("You can't carry \the [A] while ventcrawling!"))
return FALSE
return TRUE
@@ -163,23 +163,23 @@ var/list/ventcrawl_machinery = list(
switch(vent_found.air_contents.temperature)
if(0 to BODYTEMP_COLD_DAMAGE_LIMIT)
to_chat(src, "<span class='danger'>You feel a painful freeze coming from the vent!</span>")
to_chat(src, span_danger("You feel a painful freeze coming from the vent!"))
if(BODYTEMP_COLD_DAMAGE_LIMIT to T0C)
to_chat(src, "<span class='warning'>You feel an icy chill coming from the vent.</span>")
to_chat(src, span_warning("You feel an icy chill coming from the vent."))
if(T0C + 40 to BODYTEMP_HEAT_DAMAGE_LIMIT)
to_chat(src, "<span class='warning'>You feel a hot wash coming from the vent.</span>")
to_chat(src, span_warning("You feel a hot wash coming from the vent."))
if(BODYTEMP_HEAT_DAMAGE_LIMIT to INFINITY)
to_chat(src, "<span class='danger'>You feel a searing heat coming from the vent!</span>")
to_chat(src, span_danger("You feel a searing heat coming from the vent!"))
switch(vent_found.air_contents.return_pressure())
if(0 to HAZARD_LOW_PRESSURE)
to_chat(src, "<span class='danger'>You feel a rushing draw pulling you into the vent!</span>")
to_chat(src, span_danger("You feel a rushing draw pulling you into the vent!"))
if(HAZARD_LOW_PRESSURE to WARNING_LOW_PRESSURE)
to_chat(src, "<span class='warning'>You feel a strong drag pulling you into the vent.</span>")
to_chat(src, span_warning("You feel a strong drag pulling you into the vent."))
if(WARNING_HIGH_PRESSURE to HAZARD_HIGH_PRESSURE)
to_chat(src, "<span class='warning'>You feel a strong current pushing you away from the vent.</span>")
to_chat(src, span_warning("You feel a strong current pushing you away from the vent."))
if(HAZARD_HIGH_PRESSURE to INFINITY)
to_chat(src, "<span class='danger'>You feel a roaring wind pushing you away from the vent!</span>")
to_chat(src, span_danger("You feel a roaring wind pushing you away from the vent!"))
fade_towards(vent_found,45)
prepping_to_ventcrawl = 1