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.
26 lines
536 B
Go
26 lines
536 B
Go
package gamedata
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestInstalledRewardEquipmentCatalog(t *testing.T) {
|
|
root := os.Getenv("BD2_REAL_GAMEDATA")
|
|
if root == "" {
|
|
t.Skip("explicit installed GameData integration environment required")
|
|
}
|
|
d, err := LoadRewardEquipmentCatalog(root, "20260923193640")
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if len(d.equipment) == 0 {
|
|
t.Fatal("empty equipment catalog")
|
|
}
|
|
for id := range d.equipment {
|
|
if _, _, _, err := d.RollOptions(id); err != nil {
|
|
t.Fatalf("equipment %d: %v", id, err)
|
|
}
|
|
}
|
|
}
|