Custom backpacks overwrite a worn backpack

This commit is contained in:
Anewbe
2017-10-16 23:42:23 -05:00
parent 4a6cf66183
commit fcce3a3b58

View File

@@ -222,6 +222,8 @@
existing_item = M.wear_id existing_item = M.wear_id
else if(citem.item_path == /obj/item/device/pda) else if(citem.item_path == /obj/item/device/pda)
existing_item = locate(/obj/item/device/pda) in M.contents existing_item = locate(/obj/item/device/pda) in M.contents
else if(citem.item_path == /obj/item/weapon/storage/backpack)
existing_item = locate(/obj/item/weapon/storage/backpack) in M.contents
// Spawn and equip the item. // Spawn and equip the item.
if(existing_item) if(existing_item)