推送礼包。。。。
parent
b359ae2df9
commit
e063c2c23d
|
|
@ -174,13 +174,14 @@ function this.PatFaceSpecialMonitor(v,patFaceAllData,type,starUpGiftNum)
|
|||
end
|
||||
end
|
||||
elseif v.Type == 9 then--心魔试炼限时礼包
|
||||
local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,90).Value
|
||||
local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,92).Value
|
||||
local str = string.split(specialConfig,"|")
|
||||
local nums = string.split(str[1],"#")
|
||||
local canGet = false
|
||||
local value = MonsterCampManager.monsterWave
|
||||
LogRed("nums"..#nums)
|
||||
if value == tonumber(nums[1]) or value == tonumber(nums[2]) or value == tonumber(nums[3]) or
|
||||
((value - tonumber(nums[3]))%(tonumber(str[2]))) == 0 then
|
||||
((value - tonumber(nums[3])) % tonumber(str[2]) == 0) then
|
||||
canGet = true
|
||||
end
|
||||
if canGet then
|
||||
|
|
@ -189,7 +190,7 @@ function this.PatFaceSpecialMonitor(v,patFaceAllData,type,starUpGiftNum)
|
|||
end
|
||||
end
|
||||
elseif v.Type == 10 then--主线关卡限时礼包
|
||||
local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,91).Value
|
||||
local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,93).Value
|
||||
local fightLevelConfig = ConfigManager.GetConfig(ConfigName.MainLevelConfig)
|
||||
local num = tonumber(specialConfig)
|
||||
local canGet = false
|
||||
|
|
|
|||
|
|
@ -171,6 +171,7 @@ function this.refresh()
|
|||
this:showTaskList(curType)
|
||||
this:SetRedPoint()
|
||||
CheckRedPointStatus(RedPointType.QinglongSerectTreasureTrail)
|
||||
CheckRedPointStatus(RedPointType.QinglongSerectTreasure)
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -247,6 +247,8 @@ function this.ChangeVipRedPointState()
|
|||
CheckRedPointStatus(RedPointType.Achievement_Main)
|
||||
CheckRedPointStatus(RedPointType.QinglongSerectTreasureTrail)
|
||||
CheckRedPointStatus(RedPointType.DynamicActTask)
|
||||
CheckRedPointStatus(RedPointType.QinglongSerectTreasure)
|
||||
CheckRedPointStatus(RedPointType.pozhenzhuxianTask)
|
||||
--CheckRedPointStatus(RedPointType.Achievement_One)
|
||||
--CheckRedPointStatus(RedPointType.Achievement_Two)
|
||||
--CheckRedPointStatus(RedPointType.Achievement_Three)
|
||||
|
|
@ -316,6 +318,7 @@ function this.ResetTreasureTaskInfo(taskList)
|
|||
Game.GlobalEvent:DispatchEvent(GameEvent.DynamicTask.OnMissionChange)
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.TreasureOfHeaven.TaskRefresh)
|
||||
CheckRedPointStatus(RedPointType.QinglongSerectTreasureTrail)
|
||||
CheckRedPointStatus(RedPointType.QinglongSerectTreasure)
|
||||
end
|
||||
|
||||
--迷宫寻宝前端刷新任务自行赋值
|
||||
|
|
|
|||
|
|
@ -190,13 +190,13 @@ function this:Refresh()
|
|||
if curType == 1 then
|
||||
this.tip.text = Language[12000]..level..Language[12001] or ""
|
||||
elseif curType == 3 then
|
||||
local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,91).Value
|
||||
local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,93).Value
|
||||
local num = tonumber(specialConfig)
|
||||
local value = fightLevelConfig[FightPointPassManager.lastPassFightId].SortId
|
||||
local value2 = ConfigManager.GetConfigDataByKey(ConfigName.MainLevelConfig,"SortId",math.floor(value/num)*num).Name
|
||||
this.tip.text ="恭喜您通关"..value2..",我们为您准备了超值礼包,帮助您快速通关"
|
||||
elseif curType == 4 then
|
||||
local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,90).Value
|
||||
local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,92).Value
|
||||
local str = string.split(specialConfig,"|")
|
||||
local nums = string.split(str[1],"#")
|
||||
local canGet = false
|
||||
|
|
|
|||
Loading…
Reference in New Issue