Files
Bubberstation/code/modules/unit_tests/limbsanity.dm
SkyratBot 9842475afd [MIRROR] Monkeys now use height offset (and monkey tail works) (#27244)
* Monkeys now use height offset (and monkey tail works)

* fix

* modular fixes

---------

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: SpaceLoveSs13 <68121607+SpaceLoveSs13@users.noreply.github.com>
2024-06-29 20:45:44 +05:30

13 lines
869 B
Plaintext

/datum/unit_test/limbsanity
/datum/unit_test/limbsanity/Run()
for(var/path in subtypesof(/obj/item/bodypart) - list(/obj/item/bodypart/arm, /obj/item/bodypart/leg)) /// removes the abstract items.
var/obj/item/bodypart/part = path
if(part::is_dimorphic)
if(!icon_exists(UNLINT(part::should_draw_greyscale ? part::icon_greyscale : part::icon_static), "[part::limb_id]_[part::body_zone]_m"))
TEST_FAIL("[path] does not have a valid icon for male variants")
if(!icon_exists(UNLINT(part::should_draw_greyscale ? part::icon_greyscale : part::icon_static), "[part::limb_id]_[part::body_zone]_f"))
TEST_FAIL("[path] does not have a valid icon for female variants")
else if(!icon_exists(UNLINT(part::should_draw_greyscale ? part::icon_greyscale : part::icon_static), "[part::limb_id]_[part::body_zone]"))
TEST_FAIL("[path] does not have a valid icon")