Skip to main content

auto_turn_cap_reached

Function auto_turn_cap_reached 

Source
pub fn auto_turn_cap_reached(consecutive: u32, cap: u32) -> bool
Expand description

Single source of truth for “has the consecutive auto-turn cap been hit?”

  • cap == 0 (AUTO_TURN_UNLIMITED) → never reached.
  • otherwise → consecutive >= cap.