Add limit to repeatables and dimensions

This commit is contained in:
thepaperpilot 2023-05-12 17:53:26 -05:00
parent 946ecaebcd
commit 12a68c02fa

View file

@ -437,6 +437,7 @@ export function createPlane(
showAmount: false showAmount: false
}), }),
visibility: repeatableVisibility, visibility: repeatableVisibility,
limit: 100,
bonusAmount: () => bonusAmount: () =>
Decimal.gt(repeatable.amount.value, 0) Decimal.gt(repeatable.amount.value, 0)
? isEmpowered("dirtRelic") ? isEmpowered("dirtRelic")
@ -774,6 +775,7 @@ export function createPlane(
}, },
effect, effect,
dimensions, dimensions,
limit: 100,
energy: j === 0 ? energy : undefined, energy: j === 0 ? energy : undefined,
requirements: createCostRequirement(() => ({ requirements: createCostRequirement(() => ({
resource: noPersist(resource), resource: noPersist(resource),