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.
23 lines
444 B
Go
23 lines
444 B
Go
package gamedata
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestEventPlayInstalledCatalog(t *testing.T) {
|
|
root := os.Getenv("BD2_REAL_GAMEDATA")
|
|
if root == "" {
|
|
t.Skip("BD2_REAL_GAMEDATA not set")
|
|
}
|
|
c, e := LoadEventPlayCatalog(root, "20260923193640")
|
|
if e != nil {
|
|
t.Fatal(e)
|
|
}
|
|
for _, n := range []string{"PackEventStoryTable", "FieldMiniGameSkillTable", "MGDRewardTable"} {
|
|
if len(c.Tables[n]) == 0 {
|
|
t.Fatalf("empty %s", n)
|
|
}
|
|
}
|
|
}
|