心魔红点修改

onepiece_online_and
wangzhenxing 2024-05-22 15:19:41 +08:00
parent 4571a653ff
commit f958fb04e9
2 changed files with 16 additions and 1 deletions

View File

@ -1030,6 +1030,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

@ -562,7 +562,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)