Merge pull request #7518 from Meghan-Rossi/borgcookfix

Fix cyborgs not being able to cook
This commit is contained in:
Atermonera
2020-08-21 01:25:40 -04:00
committed by VirgoBot
parent d63f0b2c3e
commit 0ebcca246e
4 changed files with 13 additions and 3 deletions
+6 -1
View File
@@ -430,11 +430,16 @@ var/list/global/slot_flags_enumeration = list(
return 1
/obj/item/proc/mob_can_unequip(mob/M, slot, disable_warning = 0)
if(!slot) return 0
if(!M) return 0
if(!canremove)
return 0
if(!slot)
if(issilicon(M))
return 1 // for stuff in grippers
return 0
if(!M.slot_is_accessible(slot, src, disable_warning? null : M))
return 0
return 1