feat(currency_wars): complete systems, settlement Rank SS, damage report, camera and recovery fixes

This commit is contained in:
CAtlas0784 committed 2026-10-31 20:47:36 +07:00
1 parent c008243f11
commit 0995055296
78 files changed
+33840 -9525

No files matched your search

@@ -17,32 +17,35 @@ func TestCurrencyWarsSupplyOffersUseCapturedRolesAndEquipment(t *testing.T) {
if err != nil {
t.Fatal(err)
}
for n := 0; n < 10; n++ {
offer, err := cwGenerateSupplyOfferWithRules(c, run, nil)
if err != nil {
t.Fatal(err)
}
if offer.DAEMEBCKHIK == 0 || len(offer.MFBAKLCBPCJ) < int(offer.DAEMEBCKHIK) {
t.Fatal("Supply has too few options")
}
used := map[uint32]bool{}
for _, item := range offer.MFBAKLCBPCJ {
if item == nil || used[item.RoleId] {
t.Fatal("Supply role is missing or duplicated")
for _, chapter := range []uint32{2, 3} {
chRun := &pb.MPIMAEMCEFH{NAGDJGMMCBE: []*pb.GridFightGameInfo{{LEOIAOFBBFA: &pb.GridFightGameInfo_KLCPAAHDPJF{KLCPAAHDPJF: &pb.BEEFLEJAOCN{DCAHJELNJNP: chapter}}}}}
for n := 0; n < 10; n++ {
offer, err := cwGenerateSupplyOfferWithRules(c, chRun, nil)
if err != nil {
t.Fatalf("chapter %d supply offer: %v", chapter, err)
}
used[item.RoleId] = true
drop := item.GetOPPFPECOBEF()
if drop == nil || drop.FNLMKJLKLFH != item.RoleId {
t.Fatal("Supply role display differs")
if offer.DAEMEBCKHIK == 0 || len(offer.MFBAKLCBPCJ) < int(offer.DAEMEBCKHIK) {
t.Fatalf("chapter %d supply has too few options", chapter)
}
if _, err := c.CapturedRoleVariant(item.RoleId, drop.GetDisplayValue().GetRoleStar()); err != nil {
t.Fatal(err)
}
if len(item.GridFightItemList) != 1 || len(item.DHLBEFLOOPM) != 1 || item.GridFightItemList[0] != item.DHLBEFLOOPM[0].FNLMKJLKLFH {
t.Fatal("Supply gear display differs")
}
if _, ok := gear[item.GridFightItemList[0]]; !ok {
t.Fatal("Supply gear is not captured")
used := map[uint32]bool{}
for _, item := range offer.MFBAKLCBPCJ {
if item == nil || used[item.RoleId] {
t.Fatal("Supply role is missing or duplicated")
}
used[item.RoleId] = true
drop := item.GetOPPFPECOBEF()
if drop == nil || drop.FNLMKJLKLFH != item.RoleId {
t.Fatal("Supply role display differs")
}
if _, err := c.CapturedRoleVariant(item.RoleId, drop.GetDisplayValue().GetRoleStar()); err != nil {
t.Fatal(err)
}
if len(item.GridFightItemList) != 1 || len(item.DHLBEFLOOPM) != 1 || item.GridFightItemList[0] != item.DHLBEFLOOPM[0].FNLMKJLKLFH {
t.Fatal("Supply gear display differs")
}
if _, ok := gear[item.GridFightItemList[0]]; !ok {
t.Fatalf("Supply gear %d is not captured", item.GridFightItemList[0])
}
}
}
}