Fixes some bugs with laptop

This commit is contained in:
Heroman3003
2019-05-18 11:09:53 +10:00
parent 9a6246067f
commit e9bab05e13
@@ -16,7 +16,10 @@
w_class = ITEMSIZE_NORMAL
var/icon_state_closed = "laptop-closed"
/obj/item/modular_computer/laptop/AltClick()
/obj/item/modular_computer/laptop/AltClick(mob/living/carbon/user)
// We need to be close to it to open it
if((!in_range(src, user)) || user.stat || user.restrained())
return
// Prevents carrying of open laptops inhand.
// While they work inhand, i feel it'd make tablets lose some of their high-mobility advantage they have over laptops now.
if(!istype(loc, /turf/))
@@ -31,7 +34,9 @@
..()
else
overlays.Cut()
set_light(0) // No glow from closed laptops
icon_state = icon_state_closed
/obj/item/modular_computer/laptop/preset
anchored = FALSE
screen_on = FALSE