飘渺之旅修改提交

dev_chengFeng
jiaoyangna 2021-10-22 18:06:44 +08:00
parent 0d8c381ace
commit 7ed825b4c1
1 changed files with 8 additions and 8 deletions

View File

@ -40,7 +40,6 @@ function this.Initialize()
-- 每次登录显示兑换红点 -- 每次登录显示兑换红点
this.SetExchangeRedStatus(true) this.SetExchangeRedStatus(true)
this.InitJourneyWithWindConFigData()
Game.GlobalEvent:AddEvent(GameEvent.Player.OnLevelChange, function() Game.GlobalEvent:AddEvent(GameEvent.Player.OnLevelChange, function()
CheckRedPointStatus(RedPointType.Expert_UpLv) CheckRedPointStatus(RedPointType.Expert_UpLv)
end) end)
@ -177,11 +176,11 @@ function this.InitActivityServerData(msg, isUpdate)
LuckyCatManager.GetRewardProgress(v.mission, v.activityId, v.value) LuckyCatManager.GetRewardProgress(v.mission, v.activityId, v.value)
end end
end end
-- if (v.activityId == ActivityTypeDef.SupremeHero) then if (v.activityId == ActivityTypeDef.SupremeHero) then
-- for n, m in ipairs(v.mission) do for n, m in ipairs(v.mission) do
-- LogGreen("v.activityId:"..v.activityId.." m.missionId:"..m.missionId.." m.state:"..m.state) LogGreen("v.activityId:"..v.activityId.." m.missionId:"..m.missionId.." m.state:"..m.state)
-- end end
-- end end
this.CheckActiveIsOpen(v) this.CheckActiveIsOpen(v)
else else
LogError("服务器发送了前端不存在的活动ID"..v.activityId) LogError("服务器发送了前端不存在的活动ID"..v.activityId)
@ -190,6 +189,7 @@ function this.InitActivityServerData(msg, isUpdate)
TreasureOfSomebodyManagerV2.SetTreasureLocalData() TreasureOfSomebodyManagerV2.SetTreasureLocalData()
this.OnlineStartCountDown() this.OnlineStartCountDown()
FindFairyManager.SetActivityData() FindFairyManager.SetActivityData()
this.InitJourneyWithWindConFigData()
end end
--倒计时逻辑处理 --倒计时逻辑处理
@ -1219,12 +1219,12 @@ end
--缥缈之旅开始 --缥缈之旅开始
--初始化数据 --初始化数据
function this.InitJourneyWithWindConFigData() function this.InitJourneyWithWindConFigData()
local acitvityConFig = ConfigManager.TryGetConfigDataByKey(ConfigName.GlobalActivity, "Type", ActivityTypeDef.JourneyWithWind) local acitvityConFig = this.GetActivityIdByType(ActivityTypeDef.JourneyWithWind)
if not acitvityConFig then return false end if not acitvityConFig then return false end
JourneyWithWindAllDayConFigData = {} JourneyWithWindAllDayConFigData = {}
JourneyWithWindDayAmount = {} JourneyWithWindDayAmount = {}
for key, configInfo in ConfigPairs(ConfigManager.GetConfig(ConfigName.ActivityRewardConfig)) do for key, configInfo in ConfigPairs(ConfigManager.GetConfig(ConfigName.ActivityRewardConfig)) do
if configInfo.ActivityId == acitvityConFig.Id then if configInfo.ActivityId == acitvityConFig then
table.insert(JourneyWithWindAllDayConFigData,configInfo) table.insert(JourneyWithWindAllDayConFigData,configInfo)
end end
end end