diff --git a/modular_chomp/code/modules/clothing/clothing.dm b/modular_chomp/code/modules/clothing/clothing.dm new file mode 100644 index 0000000000..2b5d78bd94 --- /dev/null +++ b/modular_chomp/code/modules/clothing/clothing.dm @@ -0,0 +1,19 @@ +/obj/item/clothing/shoes/MouseDrop_T(mob/living/target, mob/living/user) + if(!istype(user)) return ..() // If the user passed in isn't a living mob, exit + if(target != user) return ..() // If the user didn't drag themselves, exit + if(user.incapacitated() || user.buckled) return ..() // If user is incapacitated or buckled, exit + if(get_holder_of_type(src, /mob/living/carbon/human) == user) return ..() // No jumping into your own equipment + if(ishuman(user) && user.get_effective_size() > 0.25) return ..() // Only micro characters + + var/full = 0 + for(var/mob/M in src) + if(istype(M,/mob/living/voice)) //Don't count voices as people! + continue + full++ + if(full >= 2) + to_chat(user, "It doesn't seem like there is room in \the [src]!") + else + to_chat(user, "You crawl into \the [src]!") + user.forceMove(src) + + return ..() diff --git a/vorestation.dme b/vorestation.dme index 9ec4174195..67ce8b7f69 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -4492,6 +4492,7 @@ #include "modular_chomp\code\modules\admin\functions\modify_traits.dm" #include "modular_chomp\code\modules\client\preferences.dm" #include "modular_chomp\code\modules\client\preference_setup\global\setting_datums.dm" +#include "modular_chomp\code\modules\clothing\clothing.dm" #include "modular_chomp\code\modules\clothing\face\gasmask.dm" #include "modular_chomp\code\modules\clothing\face\miscellaneous.dm" #include "modular_chomp\code\modules\clothing\head\misc.dm"