mirror of
https://github.com/Walter-Sparrow/lunar-tear.git
synced 2026-07-02 05:43:41 +03:00
Compare commits
2 Commits
42ff8ec88f
...
ab5a999ffe
| Author | SHA1 | Date | |
|---|---|---|---|
| ab5a999ffe | |||
| 8520b67a8b |
@@ -24,7 +24,14 @@ func (h *QuestHandler) initQuestState(user *store.UserState, questId int32) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func isMainQuestPlayable(quest masterdata.EntityMQuest) bool {
|
func isMainQuestPlayable(quest masterdata.EntityMQuest) bool {
|
||||||
return !quest.IsRunInTheBackground && quest.IsCountedAsQuest
|
if quest.IsRunInTheBackground {
|
||||||
|
// A background quest is still actively played — and must NOT be
|
||||||
|
// auto-cleared on start — when it carries battle content (a non-zero
|
||||||
|
// recommended deck power, e.g. quests 500/515/30515). Pure cutscene
|
||||||
|
// background quests have RecommendedDeckPower == 0.
|
||||||
|
return quest.RecommendedDeckPower > 0
|
||||||
|
}
|
||||||
|
return quest.IsCountedAsQuest
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *QuestHandler) clearQuestMissions(user *store.UserState, questId int32, nowMillis int64) {
|
func (h *QuestHandler) clearQuestMissions(user *store.UserState, questId int32, nowMillis int64) {
|
||||||
|
|||||||
@@ -101,6 +101,9 @@ func (s *SideStoryQuestServiceServer) MoveSideStoryQuestProgress(ctx context.Con
|
|||||||
scene, ok = info.SceneIdByType(model.SideStorySceneIntroduction)
|
scene, ok = info.SceneIdByType(model.SideStorySceneIntroduction)
|
||||||
} else {
|
} else {
|
||||||
scene, ok = sideStoryNextSceneAfterBattle(info, user)
|
scene, ok = sideStoryNextSceneAfterBattle(info, user)
|
||||||
|
if !ok {
|
||||||
|
scene, ok = existing.HeadSideStoryQuestSceneId, true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if !ok {
|
if !ok {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user