fixes move inside verbs (#3843)

fixes #3843
fixes the verbs being able to teleport people inside the spacepod or
recharge station
fixes ghosts being able to use the verbs
This commit is contained in:
VampyrBytes
2016-03-13 06:29:52 +00:00
parent da80667588
commit 97dc434b22
2 changed files with 14 additions and 1 deletions
+7 -1
View File
@@ -210,10 +210,16 @@
/obj/machinery/recharge_station/verb/move_inside(var/mob/user = usr)
set category = "Object"
set src in oview(1)
if(!user)
return
if (usr.stat != CONSCIOUS)
return
if(get_dist(src, user) > 2 || get_dist(usr, user) > 1)
usr << "They are too far away to put inside"
return
if (panel_open)
usr << "<span class='warning'>Close the maintenance panel first.</span>"
return
+7
View File
@@ -547,6 +547,13 @@
set name = "Enter Pod"
set src in oview(1)
if (usr.stat != CONSCIOUS)
return
if(get_dist(src, user) > 2 || get_dist(usr, user) > 1)
usr << "They are too far away to put inside"
return
if(!istype(user))
return 0