[限时祈愿]=====红点逻辑修改
parent
7c0a3dc57b
commit
2cde942f47
|
@ -883,6 +883,8 @@ RedPointType = {
|
|||
QinglongSerectTreasureTrail = 10008,
|
||||
|
||||
XiaoYaoYouRedPoint=10009,
|
||||
--显示祈愿
|
||||
TimeLimitWish = 10010,
|
||||
--灵兽
|
||||
PokemonMainCity = 790,--灵兽主界面
|
||||
Pokemon_UpLv = 791,--灵兽升级
|
||||
|
|
|
@ -291,7 +291,7 @@ function TimeLimitUpHero:Recruit(actId,type,itemId)
|
|||
if msg.drop.Hero[1] then
|
||||
UIManager.OpenPanel(UIName.SingleRecruitPanel, msg.drop.Hero[1],actId,1,{RecruitType.PrayerSingle,RecruitType.PrayerTen},oneFunc2)
|
||||
end
|
||||
CheckRedPointStatus(RedPointType.TimeLimited)
|
||||
CheckRedPointStatus(RedPointType.TimeLimitWish)
|
||||
end,self.freeTimesId)
|
||||
end
|
||||
|
||||
|
|
|
@ -769,6 +769,28 @@ function this.GetTimeLimitRedPointStatus()
|
|||
end
|
||||
end
|
||||
|
||||
--检测心愿抽卡活动红点
|
||||
function this.GetWishDrawRedPointStatus()
|
||||
local activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.LimitUpHero)
|
||||
if not activityId then
|
||||
return false
|
||||
end
|
||||
local wish=ConfigManager.TryGetConfigData(ConfigName.WishActivitySetting,1)
|
||||
if not wish then
|
||||
return false
|
||||
end
|
||||
local freeTimesId=wish.FreeTimes
|
||||
local freeTime= 0
|
||||
if freeTimesId>0 then
|
||||
freeTime= PrivilegeManager.GetPrivilegeRemainValue(freeTimesId)
|
||||
RecruitManager.freeUseTimeList[freeTimesId]=freeTime
|
||||
return freeTime and freeTime >= 1
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
function this.GetQiankunBoxRedPointStatus()
|
||||
local lotterySetting=ConfigManager.GetConfig(ConfigName.LotterySetting)
|
||||
local activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.QianKunBox)
|
||||
|
|
|
@ -197,6 +197,7 @@ function this.InitRedPointAllRelate()
|
|||
|
||||
--主题活动
|
||||
RPData:SetParent(RedPointType.TimeLimited, RedPointType.DynamicActivity)
|
||||
RPData:SetParent(RedPointType.TimeLimitWish, RedPointType.DynamicActivity)
|
||||
RPData:SetParent(RedPointType.QianKunBox, RedPointType.DynamicActivity)
|
||||
RPData:SetParent(RedPointType.DynamicActTask, RedPointType.DynamicActivity)
|
||||
RPData:SetParent(RedPointType.DynamicActRecharge, RedPointType.DynamicActivity)
|
||||
|
@ -466,6 +467,7 @@ function this.RegisterRedCheckFunc()
|
|||
RPData:AddCheckFunc(RedPointType.Expedition_Treasure,TreasureOfHeavenManger.RedPoint)
|
||||
--主题活动
|
||||
RPData:AddCheckFunc(RedPointType.TimeLimited,OperatingManager.GetTimeLimitRedPointStatus)
|
||||
RPData:AddCheckFunc(RedPointType.TimeLimitWish,OperatingManager.GetWishDrawRedPointStatus)
|
||||
RPData:AddCheckFunc(RedPointType.QianKunBox,OperatingManager.GetQiankunBoxRedPointStatus)
|
||||
RPData:AddCheckFunc(RedPointType.DynamicActTask, OperatingManager.CheckDynamicActTaskRed)
|
||||
RPData:AddCheckFunc(RedPointType.DynamicActRecharge, OperatingManager.CheckLeiJiChongZhiRedData)
|
||||
|
|
|
@ -48,6 +48,7 @@ function this.RecruitRequest(recruitType, func, privilegeId,_itemId,_itemNum)
|
|||
this.freeUseTimeList[privilegeId] = PrivilegeManager.GetPrivilegeRemainValue(privilegeId)
|
||||
-- CheckRedPointStatus(RedPointType.Recruit_Red)
|
||||
CheckRedPointStatus(RedPointType.TimeLimited)
|
||||
CheckRedPointStatus(RedPointType.TimeLimitWish)
|
||||
CheckRedPointStatus(RedPointType.QianKunBox)
|
||||
CheckRedPointStatus(RedPointType.Pokemon_Recruit)
|
||||
end
|
||||
|
@ -71,6 +72,7 @@ function this.RefreshFreeTime()
|
|||
-- CheckRedPointStatus(RedPointType.Recruit_Red)
|
||||
CheckRedPointStatus(RedPointType.Recruit_Normal)
|
||||
CheckRedPointStatus(RedPointType.TimeLimited)
|
||||
CheckRedPointStatus(RedPointType.TimeLimitWish)
|
||||
CheckRedPointStatus(RedPointType.QianKunBox)
|
||||
end
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.Recruit.OnRecruitRefreshData)
|
||||
|
|
Loading…
Reference in New Issue