Skip to content

Commit

Permalink
lovingly borrowed from mal
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerev4r committed Sep 20, 2024
1 parent 4baa3c7 commit 4779170
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
return standing

/obj/item/storage/backpack/snail/item_interaction(mob/living/user, obj/item/tool, list/modifiers)
if(!istype(tool, /obj/item/assembly/signaler/anomaly/bluespace))
if(storage_core || !istype(tool, /obj/item/assembly/signaler/anomaly/bluespace))
return NONE

qdel(tool)
Expand All @@ -119,9 +119,11 @@
add_filter("bluespace_shell", 2, list("type" = "outline", "color" = COLOR_BLUE_LIGHT, "size" = 1))
playsound(src, 'sound/machines/click.ogg', 50, TRUE)
storage_core = TRUE
var/old_inventory = atom_storage.return_inv(FALSE)
emptyStorage()
create_storage(max_specific_storage = WEIGHT_CLASS_GIGANTIC, max_total_storage = 35, max_slots = 30, storage_type = /datum/storage/bag_of_holding)
atom_storage.allow_big_nesting = TRUE
for(var/obj/item/stored_item in old_inventory)
atom_storage.attempt_insert(stored_item, override = TRUE, messages = FALSE, force = TRUE)
name = "snail shell of holding"
update_appearance()

Expand Down

0 comments on commit 4779170

Please sign in to comment.