mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] More cosmetic strictness (#10140)
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Willburd <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a44f106df9
commit
ba992cc896
@@ -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