Files
Bubberstation/code/modules/mob
SkyratBot 35167687fa [MIRROR] Fixes runtime when throwing held simplemob [MDB IGNORE] (#15805)
* Fixes runtime when throwing held simplemob (#69272)

The first step (after validation) of throwing an object is to place it on the ground.
Placing a "mob holder" object on the ground causes it to release the held mob and delete itself.
A runtime would then occur as you tried to throw something which just deleted itself.

I overrode on_thrown on /obj/item/clothing/head/mob_holder so that it calls release instead of dropItemToGround and returns the held mob instead of the item.
The result is that you can now walk around with a backpack full of mice and throw them at people, just like in real life.

* Fixes runtime when throwing held simplemob

Co-authored-by: Jacquerel <hnevard@gmail.com>
2022-08-25 14:50:58 +01:00
..