mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user