Makes laptops require table to be opened

This commit is contained in:
Heroman3003
2019-05-06 09:59:49 +10:00
parent 015c3c82b1
commit e7d492852c

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()