fix(server): support dynamic hidden event pack purchase and entry

why the f^^kkkkkk does sh^t AI love writing useless tests so much just to clutter up my repo, looks like I’ll have to find some time to clean this s^^t up later.
This commit is contained in:
2026-10-05 20:37:38 +08:00
parent e15ee4645e
commit 3b08040a0e
13 changed files with 592 additions and 11 deletions
+6
View File
@@ -956,6 +956,12 @@ func serve(args []string) (serveErr error) {
}
eventPlayService.AttachBattleChallenges(eventBattleChallenges)
eventPlayService.AttachHubCalendars(serverConfig)
if err := eventPlayService.AttachFieldBindingsFile(filepath.Join(filepath.Dir(*worldSeed), "event_field_bindings.json")); err != nil {
return fmt.Errorf("attach hidden field bindings: %w", err)
}
if err := worldService.AttachEventFieldPacks(eventPlayService); err != nil {
return fmt.Errorf("attach event field packs: %w", err)
}
battleService.AttachEventBattle(eventPlayService)
eventActionsDesign, err := gamedata.LoadEventActionsDesign(gameData, *gameDataVersion)
if err != nil {