mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
/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:
committed by
Roxy
co-authored by
Jacquerel
parent
45cade24b7
commit
fec4a2e9b7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user