/obj/item/clothing/head/mob_holder -> /obj/item/mob_holder (#91893)

## About The Pull Request
title
## Why It's Good For The Game
it inherits a lot of behavior from clothing which leads to lots of bugs
when it isn't actually clothes, for example: shredded overlays. this
should be better.
probably fixes a bunch of bugs
## Changelog
🆑
code: mob holders are no longer subtypes of clothes, report any issues
/🆑

---------

Co-authored-by: Jacquerel <hnevard@gmail.com>
This commit is contained in:
grungussuss
2025-07-04 16:41:47 -04:00
committed by Roxy
co-authored by Jacquerel
parent 45cade24b7
commit fec4a2e9b7
15 changed files with 47 additions and 43 deletions
+2 -2
View File
@@ -64,14 +64,14 @@
)
. = ..()
set_holdable(list(
/obj/item/clothing/head/mob_holder,
/obj/item/mob_holder,
/obj/item/food/deadmouse
))
/datum/storage/pockets/chefhat/can_insert(obj/item/to_insert, mob/user, messages, force)
. = ..()
if(ispickedupmob(to_insert))
var/obj/item/clothing/head/mob_holder/mausholder = to_insert
var/obj/item/mob_holder/mausholder = to_insert
if(locate(/mob/living/basic/mouse) in mausholder.contents)
return
return FALSE