feedback5 WH: a prototype pick given skillIndex / uniEquipId null takes its locked selection (only another skill, another module or an explicit 'none' is refused); kits_layout builds each operator kit from the composed 自选 record and its def, as the sim does
No golden scenario moved.
This commit is contained in:
1 parent
171efe72de
commit
6728f87172
3 files changed
+15
-5
No files matched your search
+2
-1
@@ -146,8 +146,9 @@ export function checkDiyPick(slotId, pick, data) {
|
||||
if (proto) {
|
||||
const lk = lockedSelection(data, slot.tier, charId);
|
||||
if (!lk) return { error: `${charId}: no locked selection at tier ${slot.tier}` };
|
||||
// omitted / null = its locked selection; another skill, another module or an explicit 'none' is refused
|
||||
if (want !== null && want !== lk.skillIndex) return { error: `${charId}: a prototype carries skill ${lk.skillIndex} (与系统补位时一致)` };
|
||||
if (pick.uniEquipId !== undefined && wantMod !== lk.uniEquipId) return { error: `${charId}: a prototype carries module ${lk.uniEquipId ?? 'none'}` };
|
||||
if (pick.uniEquipId != null && wantMod !== lk.uniEquipId) return { error: `${charId}: a prototype carries module ${lk.uniEquipId ?? 'none'}` };
|
||||
({ skillIndex, uniEquipId } = lk);
|
||||
} else {
|
||||
if (want === null) return { error: `${charId}: an owned pick needs a skill index` };
|
||||
|
||||
Reference in new issue
Block a user