Fix MMIs in mechs and firesuits being burned by ash storms (#34349)
This commit is contained in:
committed by
CitadelStationBot
parent
a7b75651f9
commit
aa774aeaea
@@ -70,16 +70,16 @@
|
|||||||
sound_wo.stop()
|
sound_wo.stop()
|
||||||
sound_wi.stop()
|
sound_wi.stop()
|
||||||
|
|
||||||
/datum/weather/ash_storm/proc/is_ash_immune(mob/living/L)
|
/datum/weather/ash_storm/proc/is_ash_immune(atom/L)
|
||||||
if(ismecha(L.loc)) //Mechs are immune
|
while (L && !isturf(L))
|
||||||
return TRUE
|
if(ismecha(L)) //Mechs are immune
|
||||||
if(ishuman(L)) //Are you immune?
|
|
||||||
var/mob/living/carbon/human/H = L
|
|
||||||
var/thermal_protection = H.get_thermal_protection()
|
|
||||||
if(thermal_protection >= FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT)
|
|
||||||
return TRUE
|
return TRUE
|
||||||
if(istype(L.loc, /mob/living) && L.loc != L) //Matryoshka check
|
if(ishuman(L)) //Are you immune?
|
||||||
return is_ash_immune(L.loc)
|
var/mob/living/carbon/human/H = L
|
||||||
|
var/thermal_protection = H.get_thermal_protection()
|
||||||
|
if(thermal_protection >= FIRE_IMMUNITY_SUIT_MAX_TEMP_PROTECT)
|
||||||
|
return TRUE
|
||||||
|
L = L.loc //Matryoshka check
|
||||||
return FALSE //RIP you
|
return FALSE //RIP you
|
||||||
|
|
||||||
/datum/weather/ash_storm/weather_act(mob/living/L)
|
/datum/weather/ash_storm/weather_act(mob/living/L)
|
||||||
|
|||||||
Reference in New Issue
Block a user