mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Custom backpacks overwrite a worn backpack
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user