mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user