Update AA synchronization, CW progression and diagnostics

This commit is contained in:
CAtlas0784 committed 2026-10-30 19:19:05 +07:00
1 parent 67a819a4d3
commit 30bee81fe9
30 files changed
+1143 -55

No files matched your search

+15 -1
View File
@@ -158,7 +158,21 @@ func cwSelectSupply(catalog *common.CurrencyWarsCatalog, run *pb.MPIMAEMCEFH, re
}
}
if next == nil {
return nil, fmt.Errorf("CW Supply next node not captured")
// Generated routes do not necessarily have a captured next-node wire.
// Keep the selected rewards on this detached run and let the common
// route factory validate and construct the actual next node. If that
// node family is not supported yet, the caller discards the snapshot.
advance, err := cwAdvanceRouteNode(catalog, run)
if err != nil {
return nil, fmt.Errorf("CW Supply next node: %w", err)
}
if len(advance.GCPNIHHBGGD) != 1 || len(advance.GCPNIHHBGGD[0].JKPJFKCBIEM) < 1 {
return nil, fmt.Errorf("CW Supply advance notification incomplete")
}
updates := advance.GCPNIHHBGGD[0].JKPJFKCBIEM
advance.GCPNIHHBGGD[0].JKPJFKCBIEM = append([]*pb.KFNCAIHIHCM{updates[0], cwUnlock()}, updates[1:]...)
notify.GCPNIHHBGGD = append(notify.GCPNIHHBGGD, advance.GCPNIHHBGGD...)
return notify, nil
}
level := new(pb.AINFNFIDGFF)
nextPending := new(pb.CHCHAJIANIM)