Lets lockers/crates protect food from ants (#23286)

* Let lockers prevent ants

* Refactor ants check; exclude closed lockers and cardboard boxes from turf structure check

* Make the structure check more lenient, convert to typecache

* gnarg

* gnarg 2: Electric Boogaloo

* Minor simplification/optimization
This commit is contained in:
Nathan Winters
2023-11-24 16:37:20 +01:00
committed by GitHub
parent f806aed945
commit 60ee7e11b7
3 changed files with 43 additions and 23 deletions
@@ -388,6 +388,7 @@
return ..()
/obj/structure/closet/bluespace
name = "bluespace closet"
desc = "A storage unit that moves and stores through the fourth dimension."
@@ -401,7 +401,6 @@
return 1
/obj/structure/table/water_act(volume, temperature, source, method)
. = ..()
if(HAS_TRAIT(src, TRAIT_OIL_SLICKED))
@@ -409,7 +408,6 @@
remove_atom_colour(FIXED_COLOUR_PRIORITY)
REMOVE_TRAIT(src, TRAIT_OIL_SLICKED, "potion")
/*
* Glass Tables
*/