fix(server): load story chapters and unlock rewards from GameData

This commit is contained in:
2026-10-04 14:55:25 +08:00
parent 3825ee7e60
commit 013c4dcf1c
23 changed files with 1215 additions and 194 deletions
@@ -127,6 +127,7 @@ func TestLastPlayedStoryPackRestoresItsExactPosition(t *testing.T) {
s := testService()
s.packs = map[int]map[int]gamedata.QuestDesign{21: s.quests, 22: {1: {ID: 1}}}
s.transitions = map[int]gamedata.PackTransition{21: {PackID: 21, NextPackID: 22}}
attachTestStoryCatalog(s)
for quest := range s.quests {
if err := s.state.ClearQuest(quest, 21); err != nil {
t.Fatal(err)