From f3b5a98ea7ac0b29b5c4905f9a84641aff07f0b6 Mon Sep 17 00:00:00 2001 From: Drulikar Date: Tue, 4 Jun 2024 16:04:07 -0700 Subject: [PATCH] Fix vehicles in miasma --- code/game/objects/effects/effect_system/smoke.dm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/game/objects/effects/effect_system/smoke.dm b/code/game/objects/effects/effect_system/smoke.dm index 0940156b31c2..184c2678188f 100644 --- a/code/game/objects/effects/effect_system/smoke.dm +++ b/code/game/objects/effects/effect_system/smoke.dm @@ -177,9 +177,15 @@ /obj/effect/particle_effect/smoke/miasma/process() . = ..() - for(var/obj/structure/closet/container in get_turf(src)) + var/turf/turf = get_turf(src) + for(var/obj/structure/closet/container in turf) for(var/mob/living/carbon/mob in container) affect(mob) + var/obj/vehicle/multitile/car = locate() in turf + var/datum/interior/car_interior = car?.interior + var/list/passengers = car_interior?.get_passengers() + for(var/mob/living/mob as anything in passengers) + affect(mob) /obj/effect/particle_effect/smoke/miasma/affect(mob/living/carbon/affected_mob) . = ..()