diff --git a/src/game/formulas.ts b/src/game/formulas.ts index 5b95c7f..0c95ba2 100644 --- a/src/game/formulas.ts +++ b/src/game/formulas.ts @@ -1998,7 +1998,17 @@ export default class Formula { * @param spendResources Whether or not to count spent resources on each purchase or not */ export function calculateMaxAffordable( - formula: GenericFormula, + formula: InvertibleFormula, + resource: Resource, + spendResources?: true +): { maxAffordable: ComputedRef; cost: ComputedRef }; +export function calculateMaxAffordable( + formula: InvertibleIntegralFormula, + resource: Resource, + spendResources: Computable +): { maxAffordable: ComputedRef; cost: ComputedRef }; +export function calculateMaxAffordable( + formula: InvertibleFormula, resource: Resource, spendResources: Computable = true ) {