Space movement is no longer faster, and now counts lattices / structures. (#9667)

Space movement is no longer always faster than normal movement, and now counts lattices / structures
This commit is contained in:
mikomyazaki
2020-08-13 20:20:49 +01:00
committed by GitHub
parent 9e0179170e
commit fc8f6ccde2
2 changed files with 9 additions and 4 deletions
@@ -4,11 +4,9 @@
if(species.slowdown)
tally = species.slowdown
if (istype(loc, /turf/space)) return -1 // It's hard to be slowed down in space by... anything
if (isopenturf(loc)) //open space checks
if (istype(loc, /turf/space) || isopenturf(loc))
if(!(locate(/obj/structure/lattice, loc) || locate(/obj/structure/stairs, loc) || locate(/obj/structure/ladder, loc)))
return -1
return 0
if(embedded_flag)
handle_embedded_objects() //Moving with objects stuck in you can cause bad times.