Pit Mode
Updated 5/23/26 by unrared.
This is the base mode a game begins with on ball 1. Much of the default/global config lives here.

Custom Pit Class
The file ./modes/pit/code/pit.py contains some custom code.
When the pit mode starts:
- All 4 segments are cleared.
- The method
update_progressis hooked into the eventplayer_pit_eternal_tickhandling the indication of state on playfield inserts for common patterns. - Sets the
nameplayer variable (Juan, Deuce, etc.) per the playernumber. - Randomly assigns the
evil_numberfor thepure_evilmode.
Base Functionality
- Base scoring is here from
./modes/pit/config/variable_player.yaml. - The
ball_startball save lasts 10s with a2s grace period. - Shows for the ball save, the pit arrow, swerve and fuel are from
./modes/pit/config/show_player.yaml.
