Add auto-repeat quest and memoir auto-sell
Build and Push Docker images to Docker Hub / build-and-push (push) Has been cancelled

This commit is contained in:
Ilya Groshev
2026-05-28 10:48:26 +03:00
parent c961fde8ac
commit 63df7d7055
19 changed files with 413 additions and 34 deletions
@@ -268,6 +268,9 @@ func ChangedTables(before, after *store.UserState) []string {
if !mapsEqualStruct(before.TowerAccumulationRewards, after.TowerAccumulationRewards) {
add("IUserEventQuestTowerAccumulationReward")
}
if !before.QuestAutoOrbit.Equal(after.QuestAutoOrbit) {
add("IUserQuestAutoOrbit")
}
if !mapsEqualStruct(before.LabyrinthStages, after.LabyrinthStages) {
add("IUserEventQuestLabyrinthStage")
}
@@ -476,6 +479,8 @@ func keyFieldsForTable(table string) []string {
return []string{"userId", "bigHuntWeeklyVersion"}
case "IUserDeckTypeNote":
return []string{"userId", "deckType"}
case "IUserQuestAutoOrbit":
return []string{"userId"}
default:
return nil
}
+17 -1
View File
@@ -268,10 +268,26 @@ func init() {
s, _ := utils.EncodeJSONMaps(records...)
return s
})
register("IUserQuestAutoOrbit", func(user store.UserState) string {
s := user.QuestAutoOrbit
if s.MaxAutoOrbitCount <= 0 {
return "[]"
}
out, _ := utils.EncodeJSONMaps(map[string]any{
"userId": user.UserId,
"questType": s.QuestType,
"chapterId": s.ChapterId,
"questId": s.QuestId,
"maxAutoOrbitCount": s.MaxAutoOrbitCount,
"clearedAutoOrbitCount": s.ClearedAutoOrbitCount,
"lastClearDatetime": s.LastClearDatetime,
"latestVersion": s.LatestVersion,
})
return out
})
registerStatic(
"IUserEventQuestDailyGroupCompleteReward",
"IUserQuestReplayFlowRewardGroup",
"IUserQuestAutoOrbit",
"IUserQuestSceneChoice",
"IUserQuestSceneChoiceHistory",
)