Skip to content

Commit

Permalink
[MIRROR] Bluespace snail shells will no longer eat additional inserte…
Browse files Browse the repository at this point in the history
…d anomaly cores (Fluffy-Frontier#5046)

* Bluespace snail shells will no longer eat additional inserted anomaly cores (Fluffy-Frontier#4414)

* Bluespace snail shell will no longer eat additional inserted anomaly cores

* QoL inv transfer

* Update snail.dm

* [MIRROR] Bluespace snail shells will no longer eat additional inserted anomaly cores

* Update snail.dm

---------

Co-authored-by: Bloop <[email protected]>
Co-authored-by: StealsThePRs <[email protected]>
Co-authored-by: Feenie <[email protected]>
  • Loading branch information
4 people authored Sep 20, 2024
1 parent 5dfc960 commit f4d7f88
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,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 @@ -118,9 +118,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 f4d7f88

Please sign in to comment.