mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 16:32:16 +02:00
fix local voucher test
This commit is contained in:
parent
7049852b12
commit
76dbee78c1
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user