mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-04 14:01:22 +00:00
* virtual limbsanity * remove old file * indent fail * dumbassery cleanup * unlint + tweak * stop coding while high * internal screaming * kill another species dependancy * make sure it has a default * makes the unit test actually work * fix monkeys
13 lines
761 B
Plaintext
13 lines
761 B
Plaintext
/datum/unit_test/limbsanity
|
|
|
|
/datum/unit_test/limbsanity/Run()
|
|
for(var/path in subtypesof(/obj/item/bodypart))
|
|
var/obj/item/bodypart/part = new path(null)
|
|
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"))
|
|
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"))
|
|
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]"))
|
|
Fail("[path] does not have a valid icon")
|