mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-24 21:57:53 +01:00
Merge pull request #4732 from TheGreatKitsune/crawling-into-shoes
Micros can now crawl into shoes
This commit is contained in:
@@ -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 ..()
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user