diff --git a/code/modules/mob/living/simple_mob/subtypes/animal/passive/mouse_vr.dm b/code/modules/mob/living/simple_mob/subtypes/animal/passive/mouse_vr.dm index e86cfd3934..f1b1c31586 100644 --- a/code/modules/mob/living/simple_mob/subtypes/animal/passive/mouse_vr.dm +++ b/code/modules/mob/living/simple_mob/subtypes/animal/passive/mouse_vr.dm @@ -20,3 +20,20 @@ if((I_HELP) && U.canClick()) //a little snowflakey, but makes it use the same cooldown as interacting with non-inventory objects U.setClickCooldown(U.get_attack_speed()) //if there's a cleaner way in baycode, I'll change this U.visible_message("[U] [M.response_help] \the [M].") + +/mob/living/simple_mob/animal/passive/mouse/MouseDrop(var/obj/item/weapon/storage/S) + if(istype(S, /obj/item/weapon/storage)) + var/obj/item/weapon/holder/H = new holder_type(get_turf(src)) //this works weird, but it creates an empty holder, to see if that holder can fit + if(S.can_be_inserted(H)) + H.held_mob = src + src.forceMove(H) + visible_message("\the [src] squeezes into \the [S].") + H.forceMove(S) + H.sync(src) + return 1 + else + qdel(H) //this deletes the empty holder if it doesnt work + to_chat(usr,"You can't fit inside \the [S]!") + return 0 + else + ..()