mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-11 18:11:35 +00:00
71 lines
2.0 KiB
Plaintext
71 lines
2.0 KiB
Plaintext
/obj/item/storage/hidden/implant
|
|
name = "bluespace pocket"
|
|
storage_slots = 2
|
|
max_w_class = WEIGHT_CLASS_NORMAL
|
|
max_combined_w_class = WEIGHT_CLASS_GIGANTIC
|
|
w_class = WEIGHT_CLASS_BULKY
|
|
cant_hold = list(/obj/item/disk/nuclear)
|
|
w_class_override = list(/obj/item/storage/belt)
|
|
silent = TRUE
|
|
|
|
/obj/item/implant/storage
|
|
name = "storage bio-chip"
|
|
desc = "Stores up to two big items in a bluespace pocket."
|
|
icon_state = "storage"
|
|
origin_tech = "materials=2;magnets=4;bluespace=5;syndicate=4"
|
|
item_color = "r"
|
|
implant_data = /datum/implant_fluff/storage
|
|
implant_state = "implant-syndicate"
|
|
|
|
var/obj/item/storage/hidden/implant/storage
|
|
|
|
/obj/item/implant/storage/Initialize(mapload)
|
|
. = ..()
|
|
storage = new /obj/item/storage/hidden/implant(src)
|
|
|
|
/obj/item/implant/storage/emp_act(severity)
|
|
..()
|
|
storage.emp_act(severity)
|
|
|
|
/obj/item/implant/storage/activate()
|
|
storage.MouseDrop(imp_in)
|
|
|
|
/obj/item/implant/storage/removed(source)
|
|
if(..())
|
|
for(var/mob/M in range(1))
|
|
if(M.s_active == storage)
|
|
storage.close(M)
|
|
for(var/obj/item/I in storage)
|
|
storage.remove_from_storage(I, get_turf(source))
|
|
return TRUE
|
|
|
|
/obj/item/implant/storage/implant(mob/source)
|
|
var/obj/item/implant/storage/imp_e = locate(type) in source
|
|
if(imp_e)
|
|
imp_e.storage.storage_slots += storage.storage_slots
|
|
imp_e.storage.max_combined_w_class += storage.max_combined_w_class
|
|
imp_e.storage.contents += storage.contents
|
|
|
|
for(var/mob/M in range(1))
|
|
if(M.s_active == storage)
|
|
storage.close(M)
|
|
storage.show_to(source)
|
|
|
|
qdel(src)
|
|
return TRUE
|
|
|
|
return ..()
|
|
|
|
/obj/item/implant/storage/proc/get_contents() //Used for swiftly returning a list of the implant's contents i.e. for checking a theft objective's completion.
|
|
if(storage && storage.contents)
|
|
return storage.contents
|
|
|
|
/obj/item/implanter/storage
|
|
name = "bio-chip implanter (storage)"
|
|
implant_type = /obj/item/implant/storage
|
|
|
|
/obj/item/implantcase/storage
|
|
name = "bio-chip case - 'Storage'"
|
|
desc = "A glass case containing a storage bio-chip."
|
|
implant_type = /obj/item/implant/storage
|