CLAUDE: Remove hit location requirement from lineout outcomes
Lineouts are simple outs with no runner advancement logic - the backend doesn't use hit_location for them (unlike flyouts for sac flies or groundballs for double plays). Updated OUTCOMES_REQUIRING_HIT_LOCATION to exclude lineout and added documentation explaining the rationale. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
27b502a7ad
commit
af598b3dee
@ -69,7 +69,13 @@ export const OUTCOME_CATEGORIES = [
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Outcomes that require a hit location to be specified
|
* Outcomes that require a hit location to be specified
|
||||||
* These outcomes involve defensive plays where location matters
|
* These outcomes involve defensive plays where location matters for game logic:
|
||||||
|
* - Groundballs: determines double play eligibility
|
||||||
|
* - Flyouts: determines sac fly advancement opportunities
|
||||||
|
* - Uncapped hits/errors: determines runner advancement
|
||||||
|
*
|
||||||
|
* Note: lineout and popout are NOT included because they are simple outs
|
||||||
|
* with no runner advancement logic - the backend doesn't use hit_location for them
|
||||||
*/
|
*/
|
||||||
export const OUTCOMES_REQUIRING_HIT_LOCATION = [
|
export const OUTCOMES_REQUIRING_HIT_LOCATION = [
|
||||||
'groundball_a',
|
'groundball_a',
|
||||||
@ -78,7 +84,6 @@ export const OUTCOMES_REQUIRING_HIT_LOCATION = [
|
|||||||
'flyout_a',
|
'flyout_a',
|
||||||
'flyout_b',
|
'flyout_b',
|
||||||
'flyout_c',
|
'flyout_c',
|
||||||
'lineout',
|
|
||||||
'single_uncapped',
|
'single_uncapped',
|
||||||
'double_uncapped',
|
'double_uncapped',
|
||||||
'error',
|
'error',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user