mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #5190 from Heroman3003/mc-opening-table
Makes laptops require table to be opened
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user