Skip to content

Commit

Permalink
Fix vehicles in miasma
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Jun 4, 2024
1 parent bafdedb commit f3b5a98
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/game/objects/effects/effect_system/smoke.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
. = ..()
Expand Down

0 comments on commit f3b5a98

Please sign in to comment.