mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
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:
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)
|
||||
|
||||
Reference in New Issue
Block a user