心魔试炼红点修改

tcx_xiyou_dev
PC-202302260912\Administrator 2024-05-06 11:10:01 +08:00
parent 1a2032199a
commit 889ba23b84
2 changed files with 16 additions and 1 deletions

View File

@ -1032,6 +1032,21 @@ function this.SetRewardData()
return dataList
end
function this.CheckNorMalRedPoint()
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.MONSTER_COMING) then
for k,v in ConfigPairs(ConfigManager.GetConfig(ConfigName.FloodConfig)) do
if v.SpecialReward and #v.SpecialReward > 0 then
local state = MonsterCampManager.GetTrialRewardState(v.Id)
if state == 1 then
return true
end
end
end
end
return false
end
--新心魔试炼
-- 获取剩余挑战次数 特权
function this.GetCanBattleCount()

View File

@ -560,7 +560,7 @@ function this.RegisterRedCheckFunc()
RPData:AddCheckFunc(RedPointType.HeroExplore, CarbonManager.CarbonRedCheck)
RPData:AddCheckFunc(RedPointType.challengeCopy, CarbonManager.CarbonRedCheck)
--RPData:AddCheckFunc(RedPointType.HeartDemon, CarbonManager.CarbonRedCheck)
RPData:AddCheckFunc(RedPointType.EpicExplore_LevleReward, CarbonManager.CarbonRedCheck)
RPData:AddCheckFunc(RedPointType.EpicExplore_LevleReward, MonsterCampManager.CheckNorMalRedPoint)
RPData:AddCheckFunc(RedPointType.EpicExplore_MoppingUp, MonsterCampManager.CarbonRedCheck)
RPData:AddCheckFunc(RedPointType.LegendExplore, CarbonManager.CarbonRedCheck)