Skip to content

Commit

Permalink
Fixes Amber Ordeal Runtime on Dungeon Map (#2081)
Browse files Browse the repository at this point in the history
Amber ordeals were stuck picking from a empty list without turning off their own burrowing.
  • Loading branch information
InsightfulParasite authored Apr 25, 2024
1 parent c90c717 commit 0aaf849
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@

/mob/living/simple_animal/hostile/ordeal/amber_bug/proc/BurrowIn(turf/T)
if(!T)
T = pick(GLOB.xeno_spawn)
if(GLOB.xeno_spawn.len)
T = pick(GLOB.xeno_spawn)
else
can_burrow_solo = FALSE
return
burrowing = TRUE
visible_message(span_danger("[src] burrows into the ground!"))
playsound(get_turf(src), 'sound/effects/ordeals/amber/dawn_dig_in.ogg', 25, 1)
Expand Down

0 comments on commit 0aaf849

Please sign in to comment.