Remove temporary compensation voucher logic

This commit is contained in:
Flashfyre 2023-12-21 11:46:50 -05:00
parent 2568ac3524
commit b9c05a253e
1 changed files with 0 additions and 10 deletions

View File

@ -207,16 +207,6 @@ export class GameData {
} }
if (data.voucherCounts) { if (data.voucherCounts) {
// TODO: Remove
if (data.voucherUnlocks && !data.voucherCounts.hasOwnProperty(VoucherType.GOLDEN)) {
data.voucherCounts[VoucherType.GOLDEN] = 0;
for (let v of Object.keys(data.voucherUnlocks)) {
const voucherType = vouchers[v].voucherType;
if (voucherType > VoucherType.REGULAR)
data.voucherCounts[VoucherType.REGULAR] += voucherType === VoucherType.GOLDEN ? 15 : voucherType === VoucherType.PREMIUM ? 5 : 4;
}
}
Utils.getEnumKeys(VoucherType).forEach(key => { Utils.getEnumKeys(VoucherType).forEach(key => {
const index = VoucherType[key]; const index = VoucherType[key];
this.voucherCounts[index] = data.voucherCounts[index] || 0; this.voucherCounts[index] = data.voucherCounts[index] || 0;