Adds Custom Subtle verb

This commit is contained in:
Casey
2023-07-15 16:02:55 -04:00
committed by CHOMPStation2
parent fa44322203
commit db975d1bb6
3 changed files with 197 additions and 8 deletions

View File

@@ -417,6 +417,27 @@ var/list/table_icon_cache = list()
if(carpeted)
add_overlay("carpet_flip[type]")
/obj/structure/table/proc/get_all_connected_tables(var/list/connections)
if(!connections)
connections = list(src)
else
connections |= src
if(istype(src, /obj/structure/table/rack))
return connections
for(var/direction in cardinal)
var/turf/T = get_step(src, direction)
if(T)
var/obj/structure/table/nextT = locate(/obj/structure/table) in T
if(!nextT || !istype(nextT))
continue
if(istype(nextT, /obj/structure/table/rack) || (istype(nextT, /obj/structure/table/bench) && !istype(src, /obj/structure/table/bench)) || (!istype(nextT, /obj/structure/table/bench) && istype(src, /obj/structure/table/bench)))
continue
if(!(nextT in connections))
connections |= nextT.get_all_connected_tables(connections)
return connections
#define CORNER_NONE 0
#define CORNER_COUNTERCLOCKWISE 1