From 51bb41949db0c8c14b707dc84210fefec5efbfa3 Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Mon, 29 Jul 2024 11:02:05 -0400 Subject: [PATCH] Extend mule pathfinding range for cere and remove some obstacles. (#26284) --- _maps/map_files/stations/cerestation.dmm | 15 ++------------- .../mob/living/simple_animal/bot/mulebot.dm | 6 +++++- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/_maps/map_files/stations/cerestation.dmm b/_maps/map_files/stations/cerestation.dmm index c76f50d09de..49ecc4ed49e 100644 --- a/_maps/map_files/stations/cerestation.dmm +++ b/_maps/map_files/stations/cerestation.dmm @@ -23368,7 +23368,7 @@ }, /obj/structure/disposalpipe/segment, /obj/machinery/atmospherics/pipe/simple/visible, -/turf/simulated/wall, +/turf/simulated/floor/plating, /area/station/science/misc_lab) "czg" = ( /turf/simulated/floor/plasteel{ @@ -61497,17 +61497,6 @@ icon_state = "neutralcorner" }, /area/station/hallway/primary/starboard/south) -"mGE" = ( -/obj/structure/cable/orange{ - d1 = 4; - d2 = 8; - icon_state = "4-8" - }, -/obj/structure/grille, -/turf/simulated/floor/plating{ - icon_state = "asteroidplating" - }, -/area/station/maintenance/apmaint) "mGK" = ( /obj/effect/decal/cleanable/dirt, /obj/effect/turf_decal/stripes/line{ @@ -123710,7 +123699,7 @@ ciG gPL nwv pQN -mGE +nta cGd pAi pAi diff --git a/code/modules/mob/living/simple_animal/bot/mulebot.dm b/code/modules/mob/living/simple_animal/bot/mulebot.dm index 355df3b22fc..80904841ab2 100644 --- a/code/modules/mob/living/simple_animal/bot/mulebot.dm +++ b/code/modules/mob/living/simple_animal/bot/mulebot.dm @@ -27,6 +27,10 @@ bot_purpose = "deliver crates and other packages between departments, as requested" req_access = list(ACCESS_CARGO) + /// The maximum amount of tiles the MULE can search via SSpathfinder before giving up. + /// Stored as a variable to allow VVing if there's any weirdness. + var/maximum_pathfind_range = 350 + suffix = "" @@ -606,7 +610,7 @@ // given an optional turf to avoid /mob/living/simple_animal/bot/mulebot/calc_path(turf/avoid = null) check_bot_access() - set_path(get_path_to(src, target, 250, access = access_card.access, exclude = avoid)) + set_path(get_path_to(src, target, max_distance = maximum_pathfind_range, access = access_card.access, exclude = avoid)) // sets the current destination // signals all beacons matching the delivery code