Skip to content

Commit

Permalink
[MIRROR] Legion beacon spawn spam buffer (#2960)
Browse files Browse the repository at this point in the history
Co-authored-by: SierraKomodo <[email protected]>
Co-authored-by: Lexanx <[email protected]>
  • Loading branch information
3 people authored Dec 20, 2024
1 parent db799be commit 4153702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packs/legion/legion_beacon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
var/sensor_range = 8

/// Integer. Time between mob spawns.
var/spawn_rate = 5 SECONDS
var/spawn_rate = 10 SECONDS

/// Integer. `world.time` of the last mob spawn.
var/last_spawn_time = 0
Expand Down Expand Up @@ -88,6 +88,7 @@

if (BEACON_STATE_ON)
if (world.time < last_spawn_time + spawn_rate)
last_spawn_time = world.time
return
if (length(linked_mobs) >= max_active_bots)
return
Expand Down

0 comments on commit 4153702

Please sign in to comment.