Merge pull request #7518 from Meghan-Rossi/borgcookfix

Fix cyborgs not being able to cook
This commit is contained in:
Atermonera
2020-08-20 22:24:03 -07:00
committed by GitHub
4 changed files with 13 additions and 3 deletions

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