旧战令换算修复

This commit is contained in:
COMPUTER\EDY 2026-09-10 11:44:53 +08:00
parent b189305423
commit 6c37331f73

View File

@ -70,7 +70,8 @@ export function passBounds(stage: any, count: number) {
return { generated, content };
}
export function canClaimPass(stage: any, index: number, left: boolean): boolean {
return !!stage && index >= 0 && index < stage.unlocked && (stage[left ? 'free' : 'passCheck'] || [])[index] === 1
// 1 表示已解锁待领取;换期重算的 unlocked 不能撤销存档中已有的领取资格。
return !!stage && index >= 0 && (stage[left ? 'free' : 'passCheck'] || [])[index] === 1
&& (index < 35 ? left || passTier(stage) >= 18 : passTier(stage) === 30);
}
export function hasPassReward(stage: any): boolean {