From 932b4dd34829d0d17fc72c49ca4fcae7d92489a9 Mon Sep 17 00:00:00 2001 From: Wayland-Smithy <64715958+Wayland-Smithy@users.noreply.github.com> Date: Fri, 14 Jun 2024 22:44:06 -0700 Subject: [PATCH] Fix revenant spawning next to brains and other unharvestable mobs (#83975) ## About The Pull Request What it says on the tin. Currently we are adding all dead `mob/living/` to the list of potential revenant spawns whether or not they are valid harvest targets. Decreases the odds of getting a spawn that is not immediately useful as revenant. ## Why It's Good For The Game Fix good. Harvesting only works with `mob/living/carbon/human/` so naturally we should avoid adding other mobs to the list of potential spawn points. ## Changelog :cl: fix: Fixed revenant spawning next to brains and other unharvestable dead mobs. /:cl: --- code/modules/events/ghost_role/revenant_event.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/events/ghost_role/revenant_event.dm b/code/modules/events/ghost_role/revenant_event.dm index 7af53b847c8..6f615f729c2 100644 --- a/code/modules/events/ghost_role/revenant_event.dm +++ b/code/modules/events/ghost_role/revenant_event.dm @@ -34,7 +34,7 @@ if(isnull(chosen_one)) return NOT_ENOUGH_PLAYERS var/list/spawn_locs = list() - for(var/mob/living/L in GLOB.dead_mob_list) //look for any dead bodies + for(var/mob/living/carbon/human/L in GLOB.dead_mob_list) //look for any harvestable bodies var/turf/T = get_turf(L) if(T && is_station_level(T.z)) spawn_locs += T