(turns: number, cost: number, resultText: string)
| 81 | * @returns true if this looks like a spending cap hit |
| 82 | */ |
| 83 | export function isSpendingCapBehavior(turns: number, cost: number, resultText: string): boolean { |
| 84 | // Only check if turns <= 2 AND cost is exactly 0 |
| 85 | if (turns > 2 || cost !== 0) { |
| 86 | return false; |
| 87 | } |
| 88 | |
| 89 | return matchesBillingTextPattern(resultText); |
| 90 | } |
no test coverage detected