add support for GAGS to design asset list generation (#60366)

This commit is contained in:
Bobbahbrown
2021-07-22 19:47:43 -03:00
committed by GitHub
parent 6c8c797cdc
commit 7b5bdfd56c
+8 -2
View File
@@ -377,9 +377,15 @@
if (machine)
item = machine
icon_file = initial(item.icon)
icon_state = initial(item.icon_state)
// Check for GAGS support where necessary
var/greyscale_config = initial(item.greyscale_config)
var/greyscale_colors = initial(item.greyscale_colors)
if (greyscale_config && greyscale_colors)
icon_file = SSgreyscale.GetColoredIconByType(greyscale_config, greyscale_colors)
else
icon_file = initial(item.icon)
icon_state = initial(item.icon_state)
if(!(icon_state in icon_states(icon_file)))
warning("design [D] with icon '[icon_file]' missing state '[icon_state]'")
continue