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.
25 lines
603 B
Go
25 lines
603 B
Go
package gamedata
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestInstalledEventActions23510(t *testing.T) {
|
|
root := os.Getenv("BD2_REAL_GAMEDATA")
|
|
if root == "" {
|
|
t.Skip("BD2_REAL_GAMEDATA not configured")
|
|
}
|
|
d, e := LoadEventActionsDesign(root, "20260923193640")
|
|
if e != nil {
|
|
t.Fatal(e)
|
|
}
|
|
if len(d.Tables["VotingEventTable"]) != 6 || len(d.Tables["FriendshipSpecialEpisodeTable"]) != 120 || len(d.Tables["NpcQuizTable"]) != 43 {
|
|
t.Fatal("event actions incomplete")
|
|
}
|
|
r := d.SpawnRewards[[2]uint64{3009, 3001}]
|
|
if r.Type != 4 || r.Count != 10000 {
|
|
t.Fatalf("spawn reward mismatch %+v", r)
|
|
}
|
|
}
|