Files
Bubberstation/code/modules/unit_tests/spawn_humans.dm
SkyratBot e53003b56d [MIRROR] Fixes taste not existing for mobs without having their tongue changed [MDB IGNORE] (#20524)
* Fixes taste not existing for mobs without having their tongue changed (#74665)

## About The Pull Request

Fixes #74571

Init order memes.

All carbons innately gained the trait `TRAIT_AGEUSIA` in initialize due
to not having a tongue

Then, their organs would be created and their initial tongue would
remove this trait

But at some point init order changed, unsure when

This caused this trait to be applied at an inappropriate time, causing
all spawned carbons to be tastebud-less until their tongue was changed

## Why It's Good For The Game

mmmm

## Changelog

🆑 Melbert
fix: You can now taste once again, without requiring your tongue be
surgically replaced or reattached
/🆑

* Fixes taste not existing for mobs without having their tongue changed

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
2023-04-13 12:39:06 -07:00

16 lines
780 B
Plaintext

/datum/unit_test/spawn_humans/Run()
var/locs = block(run_loc_floor_bottom_left, run_loc_floor_top_right)
for(var/I in 1 to 5)
new /mob/living/carbon/human/consistent(pick(locs))
sleep(5 SECONDS)
/// Tests [/mob/living/carbon/human/proc/setup_organless_effects], specifically that they aren't applied when init is done
/datum/unit_test/human_default_traits
/datum/unit_test/human_default_traits/Run()
var/mob/living/carbon/human/consistent/dummy = allocate(/mob/living/carbon/human/consistent)
TEST_ASSERT(!HAS_TRAIT_FROM(dummy, TRAIT_AGEUSIA, NO_TONGUE_TRAIT), "Dummy has ageusia on init, when it should've been removed by its default tongue.")
TEST_ASSERT(!dummy.is_blind_from(NO_EYES), "Dummy is blind on init, when it should've been removed by its default eyes.")