From 4fb2d90dbbbff01585f7ed00c8b58586e4d9837b Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Tue, 14 Feb 2023 21:47:18 -0600 Subject: [PATCH] buyMax -> maximize --- src/features/repeatable.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/features/repeatable.tsx b/src/features/repeatable.tsx index ddfe965..55d29bf 100644 --- a/src/features/repeatable.tsx +++ b/src/features/repeatable.tsx @@ -45,7 +45,7 @@ export interface RepeatableOptions { style?: Computable; mark?: Computable; small?: Computable; - buyMax?: Computable; + maximize?: Computable; display?: Computable; onPurchase?: VoidFunction; } @@ -72,7 +72,7 @@ export type Repeatable = Replace< style: GetComputableType; mark: GetComputableType; small: GetComputableType; - buyMax: GetComputableType; + maximize: GetComputableType; display: Ref; } >; @@ -149,7 +149,7 @@ export function createRepeatable( } payRequirements( repeatable.requirements, - unref(genericRepeatable.buyMax) + unref(genericRepeatable.maximize) ? maxRequirementsMet(genericRepeatable.requirements) : 1 ); @@ -203,7 +203,7 @@ export function createRepeatable(
{displayRequirements( genericRepeatable.requirements, - unref(genericRepeatable.buyMax) + unref(genericRepeatable.maximize) ? maxRequirementsMet(genericRepeatable.requirements) : 1 )} @@ -222,7 +222,7 @@ export function createRepeatable( processComputable(repeatable as T, "style"); processComputable(repeatable as T, "mark"); processComputable(repeatable as T, "small"); - processComputable(repeatable as T, "buyMax"); + processComputable(repeatable as T, "maximize"); repeatable[GatherProps] = function (this: GenericRepeatable) { const { display, visibility, style, classes, onClick, canClick, small, mark, id } =