diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm index 15df657564d..02d0af872a7 100644 --- a/code/modules/mob/transform_procs.dm +++ b/code/modules/mob/transform_procs.dm @@ -28,6 +28,8 @@ icon = initial(icon) invisibility = 0 set_species(/datum/species/monkey) + name = "monkey" + set_name() SEND_SIGNAL(src, COMSIG_HUMAN_MONKEYIZE) uncuff() regenerate_icons() diff --git a/code/modules/unit_tests/lesserform.dm b/code/modules/unit_tests/lesserform.dm index a719b11dc52..ef56e71bbaa 100644 --- a/code/modules/unit_tests/lesserform.dm +++ b/code/modules/unit_tests/lesserform.dm @@ -3,6 +3,7 @@ /datum/unit_test/lesserform/Run() var/mob/living/carbon/human/changeling = allocate(/mob/living/carbon/human/consistent) + var/name = changeling.name changeling.mind_initialize() var/datum/mind/mind = changeling.mind var/datum/antagonist/changeling/changeling_datum = mind.add_antag_datum(/datum/antagonist/changeling) @@ -13,11 +14,13 @@ transform_ability.Trigger() TEST_ASSERT(ismonkey(changeling), "Changeling failed to turn into a monkey after voluntarily transforming using lesser form.") + TEST_ASSERT_NOTEQUAL(name, changeling.name, "Monkeyisation failed to anonymise changeling's name.") changeling.humanize(instant = TRUE) transform_ability.Trigger() TEST_ASSERT(ismonkey(changeling), "Changeling failed to turn into a monkey after involuntarily being made into a human.") transform_ability.Trigger() TEST_ASSERT(!ismonkey(changeling), "Changeling failed to stop being a monkey after voluntarily transforming using lesser form.") + TEST_ASSERT_EQUAL(name, changeling.name, "Returning from monkey form failed to restore original name.") changeling.monkeyize(instant = TRUE) transform_ability.Trigger() TEST_ASSERT(!ismonkey(changeling), "Changeling failed to stop being a monkey after being involuntarily turned into one.")