mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-11 23:23:55 +01:00
refactors most spans
This commit is contained in:
@@ -27,16 +27,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
|
||||
@@ -45,7 +45,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()
|
||||
|
||||
@@ -59,7 +59,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
|
||||
. = ..()
|
||||
|
||||
@@ -102,7 +102,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
|
||||
|
||||
@@ -162,23 +162,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
|
||||
|
||||
Reference in New Issue
Block a user