Allowing micros to crawl into storage items

Fixed a bug where a micro player could pick themselves up out of storage items if they used alt+click to open it. This would free them, but create an invisible, empty holder item in their hands which could then be placed in storages.

Added the ability for micros (size 25%) and observer mice (size 100% or lower) to drag their sprite over storage items in order to climb inside. Same as if a player were to pick them up and store them.
This commit is contained in:
Eli Atonis
2022-03-24 19:31:07 +11:00
parent 2403db18f3
commit 9ec106f06f
2 changed files with 45 additions and 13 deletions
+3
View File
@@ -228,6 +228,9 @@
if(!temp)
to_chat(user, "<span class='notice'>You try to use your hand, but realize it is no longer attached!</span>")
return
if(istype(src, /obj/item/weapon/holder))
var/obj/item/weapon/holder/D = src
if(D.held_mob == user) return // No picking your own micro self up
var/old_loc = src.loc
if (istype(src.loc, /obj/item/weapon/storage))