Magboot Fixes (#14306)

This commit is contained in:
Doxxmedearly
2022-06-12 22:47:57 +02:00
committed by GitHub
parent 7c74adffa2
commit 144fbcca02
3 changed files with 8 additions and 3 deletions
@@ -103,7 +103,7 @@
return prob_slip
/mob/living/carbon/human/Check_Shoegrip(checkSpecies = TRUE)
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.
if(shoes && (shoes.item_flags & NOSLIP) && 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
return FALSE
+2 -2
View File
@@ -472,7 +472,7 @@
return -1
//Checks if a mob has solid ground to stand on
//If there's no gravity then there's no up or down so naturally you can't stand on anything.
//If there's no gravity then there's no up or down so naturally you can't stand on anything, unless you have grip.
//For the same reason lattices in space don't count - those are things you grip, presumably.
/mob/proc/check_solid_ground()
var/turf/T = get_turf(src)
@@ -484,7 +484,7 @@
var/area/A = T.loc
if (!A.has_gravity())
if (!A.has_gravity() && !Check_Shoegrip())
return 0
return 1