Files
Bubberstation/code/modules/unit_tests/spawn_mobs.dm
SkyratBot 087c4de227 [MIRROR] Stabilized gold extracts can now summon basicmobs [MDB IGNORE] (#19917)
* Stabilized gold extracts can now summon basicmobs (#74020)

## About The Pull Request

Stabilized gold extracts can now summon basicmobs,
Also, summoned familiars become friendly to the owner, which stops stuff
like mice running away.

## Why It's Good For The Game

They can now make cool basicmob carp and stuff
Fixes #74008

## Changelog

🆑
fix: Stabilized gold extracts can now spawn basicmobs
/🆑

* Stabilized gold extracts can now summon basicmobs

---------

Co-authored-by: jimmyl <70376633+mc-oofert@users.noreply.github.com>
2023-03-18 03:20:32 -07:00

11 lines
452 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/mob/living/simple_animal/animal as anything in subtypesof(/mob/living/simple_animal))
if (initial(animal.gold_core_spawnable))
allocate(animal)
for(var/mob/living/basic/basic_animal as anything in subtypesof(/mob/living/basic))
if (initial(basic_animal.gold_core_spawnable))
allocate(basic_animal)