Fax checks contents for blacklists (#90649)

## About The Pull Request

Fixes #90638, Fixes #88726

When checking for "can we fax this item", the item (and all its contents
(recursively)) are checked if they are fax-able as well

## Changelog

🆑 Melbert
fix: You can't fax unfaxable things by putting them in faxable things
/🆑
This commit is contained in:
MrMelbert
2025-04-29 17:56:54 -06:00
committed by Shadow-Quill
parent 119e34ef71
commit 3af7607909
+5 -5
View File
@@ -241,11 +241,11 @@ GLOBAL_VAR_INIT(fax_autoprinting, FALSE)
* This list expands if you snip a particular wire.
*/
/obj/machinery/fax/proc/is_allowed_type(obj/item/item)
if (is_type_in_list(item, allowed_types))
return TRUE
if (!allow_exotic_faxes)
return FALSE
return is_type_in_list(item, exotic_types)
var/list/checked_list = allow_exotic_faxes ? (allowed_types | exotic_types) : allowed_types
for(var/atom/movable/thing in item.get_all_contents())
if(!is_type_in_list(thing, checked_list))
return FALSE
return TRUE
/obj/machinery/fax/ui_interact(mob/user, datum/tgui/ui)
ui = SStgui.try_update_ui(user, src, ui)