From f4d7f88894c757377c71c8825fc0bcf59b24ea34 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Fri, 20 Sep 2024 08:31:02 +0300 Subject: [PATCH] [MIRROR] Bluespace snail shells will no longer eat additional inserted anomaly cores (#5046) * Bluespace snail shells will no longer eat additional inserted anomaly cores (#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 <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: StealsThePRs Co-authored-by: Feenie <62373791+FeenieRU@users.noreply.github.com> --- .../modules/mob/living/carbon/human/species_type/snail.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modular_nova/master_files/code/modules/mob/living/carbon/human/species_type/snail.dm b/modular_nova/master_files/code/modules/mob/living/carbon/human/species_type/snail.dm index 1fb98d7b0cc..92412c82785 100644 --- a/modular_nova/master_files/code/modules/mob/living/carbon/human/species_type/snail.dm +++ b/modular_nova/master_files/code/modules/mob/living/carbon/human/species_type/snail.dm @@ -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) @@ -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()