CALLSET_ENTRY (ball_lock, trunk_back_shot) { if (ball_lock_can_be_collected () && balls_locked < 2) { device_t *dev = device_entry (DEVNO_SUBWAY); if (device_recount (dev) < 2) { device_lock_ball (dev); } else { /* start kickout warning effect */ } ball_lock_award (); } }
CALLSET_ENTRY (multiball, dev_wire_ball_lock_enter) { if (!in_game) return; if (can_lock_ball) { if (device_recount (dev) < 2) device_lock_ball (dev); bounded_increment (balls_locked, 2); head_desired = FACE_2; callset_invoke (check_head_face); deff_start (DEFF_BALL_LOCKED); callset_invoke (ball_locked); } }