Small Seconds Define Cleanup for Spawners (#70719)

Hey there,

I was doing some codediving, and I stumbled upon this spawn_time silliness in mob spawner code, so I just swapped everything to use SECONDS defines (since units are very epic).
This commit is contained in:
san7890
2022-10-25 14:48:29 -04:00
committed by GitHub
parent bdbd8705a3
commit b22e35c6e5
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -9,7 +9,7 @@
density = TRUE
var/max_mobs = 5
var/spawn_time = 300 //30 seconds default
var/spawn_time = 30 SECONDS
var/mob_types = list(/mob/living/simple_animal/hostile/carp)
var/spawn_text = "emerges from"
var/faction = list("hostile")
@@ -40,7 +40,7 @@
icon = 'icons/mob/simple/lavaland/nest.dmi'
max_integrity = 150
max_mobs = 15
spawn_time = 150
spawn_time = 15 SECONDS
mob_types = list(/mob/living/simple_animal/hostile/skeleton)
spawn_text = "climbs out of"
faction = list("skeleton")
@@ -52,7 +52,7 @@
icon = 'icons/obj/device.dmi'
max_integrity = 200
max_mobs = 15
spawn_time = 150
spawn_time = 15 SECONDS
mob_types = list(/mob/living/simple_animal/hostile/retaliate/clown, /mob/living/simple_animal/hostile/retaliate/clown/fleshclown, /mob/living/simple_animal/hostile/retaliate/clown/clownhulk, /mob/living/simple_animal/hostile/retaliate/clown/longface, /mob/living/simple_animal/hostile/retaliate/clown/clownhulk/chlown, /mob/living/simple_animal/hostile/retaliate/clown/clownhulk/honcmunculus, /mob/living/simple_animal/hostile/retaliate/clown/mutant/glutton, /mob/living/simple_animal/hostile/retaliate/clown/banana, /mob/living/simple_animal/hostile/retaliate/clown/honkling, /mob/living/simple_animal/hostile/retaliate/clown/lube)
spawn_text = "climbs out of"
faction = list("clown")