From ac5c2a5f6f8ca34e334bfcd6508b5b6e70ade523 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 15 Jun 2024 18:41:43 +0200 Subject: [PATCH] [MIRROR] Fix revenant spawning next to brains and other unharvestable mobs (#28191) * 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: * Fix revenant spawning next to brains and other unharvestable mobs --------- Co-authored-by: Wayland-Smithy <64715958+Wayland-Smithy@users.noreply.github.com> --- 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