Bugfix - prevented kilns from spending small fires

This commit is contained in:
Jacorb90 2022-12-03 11:39:45 -05:00
parent 926963e697
commit e458a06ef2

View file

@ -173,8 +173,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
<br/>
Cost: {formatWhole(unref(buildKiln.cost!))} {buildKiln.resource!.displayName}
</>),
onPurchase(cost) {
activeFires.value = Decimal.sub(activeFires.value, cost!).max(0);
onPurchase() {
activeKilns.value = Decimal.add(activeKilns.value, 1);
},
style: {