Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes larvae sometimes spawning in space #5455

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/hive_status.dm
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,12 @@
spawning_area = pick(totalXenos) // FUCK IT JUST GO ANYWHERE
var/list/turf_list
for(var/turf/open/open_turf in orange(3, spawning_area))
if(istype(open_turf, /turf/open/space))
continue
LAZYADD(turf_list, open_turf)
// just on the off-chance
if(!LAZYLEN(turf_list))
return FALSE
var/turf/open/spawning_turf = pick(turf_list)

var/mob/living/carbon/xenomorph/larva/new_xeno = spawn_hivenumber_larva(spawning_turf, hivenumber)
Expand Down
Loading