Fix entering pods and stuff while buckled

You already can't drag and drop buckled people
onto pods and stuff but they can still enter them
by themselves. This commit fixes that
This commit is contained in:
mochi
2020-06-09 14:07:41 +02:00
parent d39d990936
commit a67d684b01
5 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -144,7 +144,7 @@
set category = null
set name = "Enter DNA Scanner"
if(usr.incapacitated()) //are you cuffed, dying, lying, stunned or other
if(usr.incapacitated() || usr.buckled) //are you cuffed, dying, lying, stunned or other
return
if(!ishuman(usr)) //Make sure they're a mob that has dna
to_chat(usr, "<span class='notice'>Try as you might, you can not climb up into the [src].</span>")
+1 -1
View File
@@ -526,7 +526,7 @@
if(panel_open)
to_chat(usr, "<span class='boldnotice'>Close the maintenance panel first.</span>")
return
if(usr.incapacitated()) //are you cuffed, dying, lying, stunned or other
if(usr.incapacitated() || usr.buckled) //are you cuffed, dying, lying, stunned or other
return
if(usr.has_buckled_mobs()) //mob attached to us
to_chat(usr, "<span class='warning'>[usr] will not fit into [src] because [usr.p_they()] [usr.p_have()] a slime latched onto [usr.p_their()] head.</span>")
+1 -1
View File
@@ -516,7 +516,7 @@
if(stat & (NOPOWER|BROKEN))
return
if(usr.incapacitated()) //are you cuffed, dying, lying, stunned or other
if(usr.incapacitated() || usr.buckled) //are you cuffed, dying, lying, stunned or other
return
put_mob(usr)
+3
View File
@@ -671,6 +671,9 @@
to_chat(usr, "<span class='warning'>[usr] will not fit into [src] because [usr.p_they()] [usr.p_have()] a slime latched onto [usr.p_their()] head.</span>")
return
if(usr.incapacitated() || usr.buckled) //are you cuffed, dying, lying, stunned or other
return
visible_message("[usr] starts climbing into [src].")
if(do_after(usr, 20, target = usr))
+2
View File
@@ -772,6 +772,8 @@
if(usr.stat != 0)
return
if(usr.incapacitated() || usr.buckled) //are you cuffed, dying, lying, stunned or other
return
if(!state_open)
to_chat(usr, "<span class='warning'>The unit's doors are shut.</span>")
return