mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
Inhand unit test modularity support p2 (#70497)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user