Update AA synchronization, CW progression and diagnostics
This commit is contained in:
1 parent
67a819a4d3
commit
30bee81fe9
30 files changed
+1143
-55
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user