mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 05:23:22 +01:00
Magboot Fixes (#14306)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user