Files
Bubberstation/code/modules
Jacquerel b5902ce969 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.
2022-08-24 18:50:27 -07:00
..
2022-08-23 21:17:30 +02:00