mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 09:21:48 +00:00
Make calculateMaxAffordable only accept spendResources values on supported formulas
This commit is contained in:
parent
e45c822787
commit
aa07793759
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