feat(all): add hunting and events, commerce and rewards, binary calendars, GameData caching and login diagnostics
Implement hunting AP and progress, event tasks, exchanges, games, stories and actions; connect battle and reward handling. Add CashShop plugin and installation, server purchases and entitlements, recharge rules and plugin version metadata. Distribute binary calendars independently; cache GameData in memory and fix single-connection query deadlocks. Improve automatic login and recovery diagnostics; document configuration and release flows.
This commit is contained in:
@@ -47,10 +47,11 @@ func TestSeedProtocolEncodingAndRoundTrip(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCashProductEventIndexIsUniqueSemanticSeedFact(t *testing.T) {
|
||||
seed, err := Load(filepath.Join("..", "..", "..", "seed", "v2_35_10", "readonly.json"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
seed := &Seed{Version: StateVersion(), Responses: map[string]Response{
|
||||
"/CashShopInfo": {PacketCode: 60, Fields: []Field{{Number: 1, Type: 2, Fields: []Field{
|
||||
{Number: 1, Type: 0, Varint: 1100001}, {Number: 2, Type: 0, Varint: 9100033}, {Number: 8, Type: 0, Varint: 1171},
|
||||
}}}},
|
||||
}}
|
||||
event, err := seed.CashProductEventIndex(1100001, 9100033)
|
||||
if err != nil || event != 1171 {
|
||||
t.Fatalf("event=%d err=%v", event, err)
|
||||
|
||||
Reference in New Issue
Block a user