Bikes Over Grates and Konyang Police Tape Fixes (#20616)

Police tape allows Konyang Police (PV Police) to walk through

Bikes can now drive over grates

Should fix https://github.com/Aurorastation/Aurora.3/issues/5605

Co-authored-by: Ben10083 <Ben10083@users.noreply.github.com>
This commit is contained in:
Ben
2025-03-17 21:29:34 +00:00
committed by GitHub
co-authored by Ben10083
parent e2653bd912
commit 2e22cf2c65
3 changed files with 66 additions and 7 deletions
+6 -6
View File
@@ -198,7 +198,7 @@
/obj/vehicle/bike/proc/check_destination(var/turf/destination)
var/static/list/types = typecacheof(list(/turf/space))
if(is_type_in_typecache(destination,types) || pulledby)
if((is_type_in_typecache(destination,types) && !locate(/obj/structure/lattice)) || pulledby)
return TRUE
else
return FALSE
@@ -217,11 +217,11 @@
if(is_on_space)
if(!space_speed)
return 0
return FALSE
move_delay = (is_careful ? space_speed_careful : space_speed)
else
if(!land_speed)
return 0
return FALSE
move_delay = (is_careful ? land_speed_careful : land_speed)
return ..()
@@ -388,7 +388,7 @@
/obj/vehicle/bike/monowheel/check_destination(var/turf/destination)
var/static/list/types = typecacheof(list(/turf/space))
if(is_type_in_typecache(destination,types) || pulledby)
if((is_type_in_typecache(destination,types) && !locate(/obj/structure/lattice)) || pulledby)
return TRUE
else
return FALSE
@@ -436,7 +436,7 @@
/obj/vehicle/bike/casino/check_destination(var/turf/destination)
var/static/list/types = typecacheof(list(/turf/space))
if(is_type_in_typecache(destination,types) || pulledby)
if((is_type_in_typecache(destination,types) && !locate(/obj/structure/lattice)) || pulledby)
return TRUE
else
return FALSE
@@ -466,7 +466,7 @@
/obj/vehicle/bike/motor/check_destination(turf/destination)
var/static/list/types = typecacheof(list(/turf/space, /turf/simulated/floor/exoplanet/water))
if(is_type_in_typecache(destination,types) || pulledby)
if((is_type_in_typecache(destination,types) && !locate(/obj/structure/lattice)) || pulledby)
return TRUE
else
return FALSE