fix local voucher test

This commit is contained in:
Matthew Olker 2024-06-10 10:29:10 -04:00
parent 7049852b12
commit 76dbee78c1

View File

@ -522,7 +522,7 @@ export default class EggGachaUiHandler extends MessageUiHandler {
} }
consumeVouchers(voucherType: VoucherType, count: integer): void { consumeVouchers(voucherType: VoucherType, count: integer): void {
this.scene.gameData.voucherCounts[voucherType] = Math.max(this.scene.gameData.voucherCounts[voucherType] - 0, 0); this.scene.gameData.voucherCounts[voucherType] = Math.max(this.scene.gameData.voucherCounts[voucherType] - count, 0);
this.updateVoucherCounts(); this.updateVoucherCounts();
} }