Pun Pun does not randomize name in testing (#95430)

## About The Pull Request

Pun Pun's name shouldn't randomize when we're testing Pun Pun's name
Closes #95424
Closes #95437 
Closes #95438
This commit is contained in:
MrMelbert
2026-03-18 17:38:16 -04:00
committed by GitHub
parent fe4052ea86
commit 760941feef
2 changed files with 3 additions and 1 deletions
@@ -130,6 +130,7 @@ GLOBAL_DATUM(the_one_and_only_punpun, /mob/living/carbon/human/species/monkey/pu
/mob/living/carbon/human/species/monkey/punpun/proc/give_special_name()
var/name_to_use = initial(name)
#ifndef UNIT_TESTS
if(ancestor_name)
name_to_use = ancestor_name
if(ancestor_chain > 1)
@@ -140,6 +141,7 @@ GLOBAL_DATUM(the_one_and_only_punpun, /mob/living/carbon/human/species/monkey/pu
if(name_to_use == "Furious George")
qdel(ai_controller)
ai_controller = new /datum/ai_controller/monkey/angry(src) //hes always mad
#endif
fully_replace_character_name(real_name, name_to_use)
+1 -1
View File
@@ -2,4 +2,4 @@
/datum/unit_test/punpun_name/Run()
var/mob/living/carbon/human/species/monkey/punpun/punpun = EASY_ALLOCATE()
TEST_ASSERT_EQUAL(punpun.name, initial(punpun.name), "Pun Pun did not have [punpun.p_their()] name set")
TEST_ASSERT_EQUAL(punpun.name, /mob/living/carbon/human/species/monkey/punpun::name, "Pun Pun did not have [punpun.p_their()] name set")