Improves Vaurca Magboot Augment (#19137)

The Vaurca integrated mag-claw augment now mimics magboot functionality
(not slipping, etc) rather than deploying an entire pair of magboots
onto the user. Code shamelessly copied from #18875
This commit is contained in:
RustingWithYou
2024-06-09 17:18:00 +00:00
committed by GitHub
parent 551b153d49
commit 7e5ec54d67
6 changed files with 84 additions and 24 deletions
@@ -78,6 +78,9 @@
if(species.can_breathe_water())
tally -= T.movement_cost
if(HAS_TRAIT(src, TRAIT_SHOE_GRIP))
tally += 1
tally += GLOB.config.human_delay
if(!isnull(facing_dir) && facing_dir != dir)
@@ -119,6 +122,8 @@
/mob/living/carbon/human/Check_Shoegrip(checkSpecies = TRUE)
if(shoes && (shoes.item_flags & ITEM_FLAG_NO_SLIP) && istype(shoes, /obj/item/clothing/shoes/magboots) && !lying && !buckled_to && !length(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
if(HAS_TRAIT(src, TRAIT_SHOE_GRIP))
return TRUE
return FALSE
/mob/living/carbon/human/set_dir(var/new_dir, ignore_facing_dir = FALSE)