mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-15 12:11:45 +00:00
* Add unit test for spawning simple_animals (#56021) Simple unit test that allocates all mobs a gold slime could spawn * Add unit test for spawning simple_animals Co-authored-by: Gamer025 <33846895+Gamer025@users.noreply.github.com>
9 lines
376 B
Plaintext
9 lines
376 B
Plaintext
///Unit test that spawns all mobs that can be spawned by golden slimes
|
|
/datum/unit_test/spawn_mobs
|
|
|
|
/datum/unit_test/spawn_mobs/Run()
|
|
for(var/_animal in typesof(/mob/living/simple_animal))
|
|
var/mob/living/simple_animal/animal = _animal
|
|
if (initial(animal.gold_core_spawnable) == HOSTILE_SPAWN || initial(animal.gold_core_spawnable) == FRIENDLY_SPAWN)
|
|
allocate(_animal)
|