Merge pull request #5190 from Heroman3003/mc-opening-table

Makes laptops require table to be opened
This commit is contained in:
Novacat
2019-05-05 20:32:04 -04:00
committed by GitHub

View File

@@ -22,6 +22,16 @@
if(!istype(loc, /turf/))
to_chat(usr, "\The [src] has to be on a stable surface first!")
return
//VOREStation Addition Begin
var/supported = FALSE
for(var/obj/structure/table/S in loc)
if(istype(S, /obj/structure/table/bench) || istype(S, /obj/structure/table/rack))
continue
supported = TRUE
if(!supported)
to_chat(usr, "You will need a better supporting surface before opening \the [src]!")
return
//VOREStation Addition End
anchored = !anchored
screen_on = anchored
update_icon()