Magboots no longer function under certain circumstances (#14257)

This commit is contained in:
Doxxmedearly
2022-06-11 14:13:41 -04:00
committed by GitHub
parent aac9ea248b
commit f505a91e02
2 changed files with 7 additions and 3 deletions
@@ -113,9 +113,9 @@
return prob_slip
/mob/living/carbon/human/Check_Shoegrip(checkSpecies = TRUE)
if(shoes && (shoes.item_flags & NOSLIP) && istype(shoes, /obj/item/clothing/shoes/magboots)) //magboots + dense_object = no floating
return 1
return 0
if(shoes && (shoes.item_flags & NOSLIP) && istype(shoes, /obj/item/clothing/shoes/magboots) && !lying && !buckled_to && !grabbed_by) //magboots + dense_object = no floating. Doesn't work if lying. Grabbedby and buckled_to are for mob carrying, wheelchairs, roller beds, etc.
return TRUE
return FALSE
/mob/living/carbon/human/set_dir(var/new_dir, ignore_facing_dir = FALSE)
. = ..()