vgstation-coders / vgstation13

Butts
GNU General Public License v3.0
260 stars 541 forks source link

mimics create dupes of the items they're disguised as if sharded while in a cage #36725

Open SECBATON-GRIFFON opened 6 days ago

SECBATON-GRIFFON commented 6 days ago

[exploitable][oversight][consistency]

Description of issue

in title deciding to leave it here since the steps are fairly convoluted found while fixing #36252, admin deleting mimics also causes this, so i thought to myself: "why is this so? why does killing a mimic not do this?" and i found out the code for it is in death(), so i codedived to see if there was any qdel call on them that bypassed it and voila

Difference between expected and actual behavior

no item left behind

Steps to reproduce

you will need:

find a small secluded room with no other items (like closing one of the pens in xenobio by yourself with it)

put down your item of choice in the room with the gold slime extract on the floor, inject with water, it will become the item, DO NOT INTERACT WITH IT or it becomes harder to deal with

close the cage on it and toggle the lid closed LAST PART IS IMPORTANT

get your shard ready, and push the cage into it. IF YOU DON'T WANT TO DIE OF RADS, HAVE A LOT OF CHEMS READY OR MAKE IT HAPPEN FROM A DISTANCE. MASS DRIVERS WILL HELP A LOT.

???

profit! and one duped item

Specific information for locating

/obj/structure/cage/supermatter_act() (does not call death() on mobs, which is essential for not duping the item on mimics)

Length of time in which bug has been known to occur

since i found it 3 months ago

Server revision