|
@@ -15,7 +15,7 @@ namespace GFGGame
|
|
|
|
|
|
public int filingChapterId;//查阅建档当前副本Id
|
|
public int filingChapterId;//查阅建档当前副本Id
|
|
public int npcFilingChapterId;//记录查阅建档工作室入口id,为与限时活动章节做区分。
|
|
public int npcFilingChapterId;//记录查阅建档工作室入口id,为与限时活动章节做区分。
|
|
- public int luckyBoxFilingChapterId;//查阅建档这个章节是限时抽奖活动专属
|
|
|
|
|
|
+ private int luckyBoxFilingChapterId;//查阅建档这个章节是限时抽奖活动专属
|
|
|
|
|
|
public int PorcelainTheme = 1;//瓷器修复当天主题
|
|
public int PorcelainTheme = 1;//瓷器修复当天主题
|
|
|
|
|
|
@@ -102,7 +102,17 @@ namespace GFGGame
|
|
{
|
|
{
|
|
needStoryLevelId = storyLevelCfg.needStoryLevelId;
|
|
needStoryLevelId = storyLevelCfg.needStoryLevelId;
|
|
}
|
|
}
|
|
- bool isPass = InstanceZonesDataManager.CheckLevelPass(needStoryLevelId);
|
|
|
|
|
|
+
|
|
|
|
+ bool isPass;
|
|
|
|
+ if (needStoryLevelId == 0)
|
|
|
|
+ {
|
|
|
|
+ isPass = true;
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ isPass = InstanceZonesDataManager.CheckLevelPass(needStoryLevelId);
|
|
|
|
+ }
|
|
|
|
+
|
|
StoryLevelCfg needStoryLevelCfg = StoryLevelCfgArray.Instance.GetCfg(needStoryLevelId);
|
|
StoryLevelCfg needStoryLevelCfg = StoryLevelCfgArray.Instance.GetCfg(needStoryLevelId);
|
|
if (!isPass && needStoryLevelCfg != null) content = string.Format("完成主线{0}-{1}解锁", needStoryLevelCfg.chapterId, needStoryLevelCfg.order);
|
|
if (!isPass && needStoryLevelCfg != null) content = string.Format("完成主线{0}-{1}解锁", needStoryLevelCfg.chapterId, needStoryLevelCfg.order);
|
|
|
|
|
|
@@ -210,7 +220,19 @@ namespace GFGGame
|
|
|
|
|
|
public bool IsluckyBoxFilingChapter()
|
|
public bool IsluckyBoxFilingChapter()
|
|
{
|
|
{
|
|
- return filingChapterId == luckyBoxFilingChapterId;
|
|
|
|
|
|
+ return filingChapterId == GetLuckyBoxActivityID();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public int GetLuckyBoxActivityID()
|
|
|
|
+ {
|
|
|
|
+ if (luckyBoxFilingChapterId == 0)
|
|
|
|
+ {
|
|
|
|
+ int activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ConstLimitTimeActivityType.ActLimitLuckyBox);
|
|
|
|
+
|
|
|
|
+ ActivityOpenCfg activityCfg = ActivityOpenCfgArray.Instance.GetCfg(activityId);
|
|
|
|
+ luckyBoxFilingChapterId = activityCfg.params3Arr != null ? activityCfg.params3Arr[0] : 0;
|
|
|
|
+ }
|
|
|
|
+ return luckyBoxFilingChapterId;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|