From e5befdf43e53c3236f0a80af2f20e9998dde5a68 Mon Sep 17 00:00:00 2001 From: Cameron Lennox Date: Mon, 10 Feb 2025 17:51:00 -0500 Subject: [PATCH] More cosmetic strictness (#17116) * prevent illegal BPs * illegal test * Revert "illegal test" This reverts commit 12df56498f58540d48c53402ac2521053a1e277f. --------- Co-authored-by: Willburd <7099514+Willburd@users.noreply.github.com> --- code/unit_tests/cosmetic_tests.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/unit_tests/cosmetic_tests.dm b/code/unit_tests/cosmetic_tests.dm index 2a0fb609aa7..a5b54d835db 100644 --- a/code/unit_tests/cosmetic_tests.dm +++ b/code/unit_tests/cosmetic_tests.dm @@ -79,6 +79,10 @@ if(istype(A,/datum/sprite_accessory/marking)) var/datum/sprite_accessory/marking/MA = A for(var/BP in MA.body_parts) + if(!(BP in BP_ALL)) + log_unit_test("[A] - [A.type]: Cosmetic - Has an illegal bodypart \"[BP]\". ONLY use parts listed in BP_ALL.") + failed = 1 + actual_icon_state = "[A.icon_state]-[BP]" if(!(actual_icon_state in cached_icon_states(A.icon))) log_unit_test("[A] - [A.type]: Cosmetic - Icon_state \"[actual_icon_state]\" is not present in [A.icon].")