Merge pull request #4732 from TheGreatKitsune/crawling-into-shoes

Micros can now crawl into shoes
This commit is contained in:
Nadyr
2022-08-28 18:20:26 -04:00
committed by GitHub
2 changed files with 20 additions and 0 deletions
@@ -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, "<span class='warning'>It doesn't seem like there is room in \the [src]!</span>")
else
to_chat(user, "<span class='warning'>You crawl into \the [src]!</span>")
user.forceMove(src)
return ..()
+1
View File
@@ -4495,6 +4495,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"