mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-05 22:43:46 +00:00
* Virtual Limbsanity * Update mobs.dm * Apply suggestions from code review * Now it compiles * Fixes a random runtime caused by a map misusing the mob_type on mob_spawn spawners Co-authored-by: Kapu1178 <75460809+Kapu1178@users.noreply.github.com> Co-authored-by: Tom <8881105+tf-4@users.noreply.github.com> Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com> Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
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")
|