Fix: Syndie depot locker is only spawned when there is a loot (#26979)

* fixing depot

* Update code/game/objects/effects/spawners/random/random_spawner.dm

Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
Signed-off-by: kyunkyunkyun <120701975+kyunkyunkyun@users.noreply.github.com>

---------

Signed-off-by: kyunkyunkyun <120701975+kyunkyunkyun@users.noreply.github.com>
Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
This commit is contained in:
kyunkyunkyun
2024-10-06 09:28:07 +00:00
committed by GitHub
co-authored by warriorstar-orion
parent dab6fc5504
commit 854a1606da
3 changed files with 11 additions and 12 deletions
@@ -35,6 +35,8 @@
var/spawn_random_angle = FALSE
/// Whether blackbox should record when the spawner spawns.
var/record_spawn = FALSE
/// Where do we want to spawn an item (closet, safe etc.)
var/spawn_inside
// Brief explanation:
// Rather then setting up and then deleting spawners, we block all atomlike setup
@@ -57,6 +59,9 @@
var/list/spawn_locations = get_spawn_locations(spawn_scatter_radius)
var/spawn_loot_count = isnull(lootcount_override) ? src.spawn_loot_count : lootcount_override
if(spawn_inside)
new spawn_inside(loc)
if(spawn_all_loot)
spawn_loot_count = INFINITY
spawn_loot_double = FALSE