2 Commits

Author SHA1 Message Date
RenechCDDA cb924413e4 Move init_veh_status to an enum (oh god) 2026-05-17 23:11:41 -04:00
dumb-kevin 99d35a7a1f Grab-aware pathfinding: danger checks, strength gating, auto-move
- Move route_with_grab to src/pathfinding.cpp for use by all routing
  entry points, not just zone sorting
- tile_danger_cost: sharp terrain impassable, dangerous traps/fields
  penalized (+500 cost), avoid_dangerous_fields forced true
- tile_blocks_vehicle: rejects impassable terrain, bashable non-flat
  terrain, TFLAG_NO_FLOOR (open air). Door asymmetry: pull through
  opened doors, push/zigzag don't open for vehicle
- drag_str_req_at checked against get_arm_str at both vehicle positions
- Integrate with game::safe_route_to and handle_action auto-travel,
  passing get_path_avoid callback
- Zone sorting cache tracks arm_str and veh_mass for invalidation
- Tests in pathfinding_test.cpp: sharp terrain, fast path fallback,
  dangerous traps, open air, reinforced glass shutters, dangerous
  fields, avoid callback, broken wheels
- Tests in clzones_test.cpp: strength gating, cache invalidation
2026-03-04 21:59:20 +04:00