fixes the error where chicks lose their custom name when growing into chickens (#24409)

* fixes chicks

* Update code/modules/mob/living/simple_animal/friendly/farm_animals.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Update code/modules/mob/living/simple_animal/friendly/farm_animals.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

---------

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
YoursTrulyHollow
2024-03-06 13:22:35 +00:00
committed by GitHub
co-authored by Contrabang
parent 4912a1c073
commit e43fb1ce34
@@ -229,6 +229,8 @@
amount_grown += rand(1,2)
if(amount_grown >= 100)
var/mob/living/simple_animal/chicken/C = new /mob/living/simple_animal/chicken(loc)
if(name != initial(name))
C.name = name
if(mind)
mind.transfer_to(C)
qdel(src)