mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-21 03:56:47 +01:00
More cosmetic strictness (#17116)
* prevent illegal BPs
* illegal test
* Revert "illegal test"
This reverts commit 12df56498f.
---------
Co-authored-by: Willburd <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
@@ -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].")
|
||||
|
||||
Reference in New Issue
Block a user