Typecheck all return_air calls (#15363)

This commit is contained in:
Wildkins
2022-12-19 12:19:41 +01:00
committed by GitHub
parent bc3728c4e7
commit bb04ba3f87
53 changed files with 94 additions and 47 deletions
@@ -540,6 +540,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
continue
var/turf/T = get_turf(testvent)
if(!istype(T)) continue
//Skip areas that contain turrets
var/area/A = T.loc
@@ -1200,6 +1200,8 @@ mob/living/carbon/human/proc/change_monitor()
else
custom_emote(VISIBLE_MESSAGE, "flicks their tongue out.")
if(!src.loc) return
var/datum/gas_mixture/mixture = src.loc.return_air()
var/total_moles = mixture.total_moles
@@ -1317,4 +1319,4 @@ mob/living/carbon/human/proc/change_monitor()
/mob/living/carbon/human/proc/stop_listening()
if (is_listening())
visible_message("<b>[src]</b> stops listening intently.")
intent_listener -= src
intent_listener -= src
@@ -280,6 +280,10 @@
return fire_stacks
/mob/living/proc/handle_fire()
if(!loc)
ExtinguishMobCompletely()
return TRUE
if(fire_stacks < 0)
fire_stacks = min(0, ++fire_stacks) //If we've doused ourselves in water to avoid fire, dry off slowly