Make calculateMaxAffordable only accept spendResources values on supported formulas
This commit is contained in:
parent
b89c4cde09
commit
757cfaa1ab
1 changed files with 11 additions and 1 deletions
|
@ -1998,7 +1998,17 @@ export default class Formula<T extends [FormulaSource] | FormulaSource[]> {
|
||||||
* @param spendResources Whether or not to count spent resources on each purchase or not
|
* @param spendResources Whether or not to count spent resources on each purchase or not
|
||||||
*/
|
*/
|
||||||
export function calculateMaxAffordable(
|
export function calculateMaxAffordable(
|
||||||
formula: GenericFormula,
|
formula: InvertibleFormula,
|
||||||
|
resource: Resource,
|
||||||
|
spendResources?: true
|
||||||
|
): { maxAffordable: ComputedRef<DecimalSource>; cost: ComputedRef<DecimalSource> };
|
||||||
|
export function calculateMaxAffordable(
|
||||||
|
formula: InvertibleIntegralFormula,
|
||||||
|
resource: Resource,
|
||||||
|
spendResources: Computable<boolean>
|
||||||
|
): { maxAffordable: ComputedRef<DecimalSource>; cost: ComputedRef<DecimalSource> };
|
||||||
|
export function calculateMaxAffordable(
|
||||||
|
formula: InvertibleFormula,
|
||||||
resource: Resource,
|
resource: Resource,
|
||||||
spendResources: Computable<boolean> = true
|
spendResources: Computable<boolean> = true
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue