From 85e24c154f13bf5e44ca2c2f2612757d38fbcc54 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Thu, 20 Oct 2022 20:33:53 -0400 Subject: [PATCH] Inhand unit test modularity support p2 (#70497) --- code/modules/unit_tests/inhands.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/unit_tests/inhands.dm b/code/modules/unit_tests/inhands.dm index be0aa57c427..bbf42e9e8f0 100644 --- a/code/modules/unit_tests/inhands.dm +++ b/code/modules/unit_tests/inhands.dm @@ -68,8 +68,8 @@ if(!lefthand_file) TEST_FAIL("Missing left inhand icon file for [item_path].\n\tinhand_icon_state = \"[held_icon_state]\"[match_message]") else - missing_left = !("[lefthand_file]" in possible_icon_states[held_icon_state]) - if(missing_left && ("[lefthand_file]" in possible_icon_states[""])) + missing_left = !icon_exists(lefthand_file, held_icon_state) + if(missing_left && icon_exists(lefthand_file, "")) left_fallback = TRUE var/missing_right @@ -78,8 +78,8 @@ if(!righthand_file) TEST_FAIL("Missing right inhand icon file for [item_path].\n\tinhand_icon_state = \"[held_icon_state]\"[match_message]") else - missing_right = !("[righthand_file]" in possible_icon_states[held_icon_state]) - if(missing_right && ("[righthand_file]" in possible_icon_states[""])) + missing_right = !icon_exists(righthand_file, held_icon_state) + if(missing_right && icon_exists(righthand_file, "")) right_fallback = TRUE if(missing_right && missing_left)