mirror of
https://github.com/Walter-Sparrow/lunar-tear.git
synced 2026-07-02 05:43:41 +03:00
Add auto-repeat quest and memoir auto-sell
Build and Push Docker images to Docker Hub / build-and-push (push) Has been cancelled
Build and Push Docker images to Docker Hub / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user