PGRData/Resources/Scripts/XRedPoint/XRedPointConditions/XRedPointConditionRpgTowerDailyRewardRed.lua

17 lines
579 B
Lua
Raw Normal View History

2022-12-26 14:06:01 +05:30
-- 可领取每日任务时红点
local XRedPointConditionRpgTowerDailyRewardRed = {}
local Events = nil
function XRedPointConditionRpgTowerDailyRewardRed.GetSubEvents()
Events = Events or {
XRedPointEventElement.New(XEventId.EVENT_RPGTOWER_REFRESH_DAILYREWARD)
}
return Events
end
function XRedPointConditionRpgTowerDailyRewardRed.Check()
return XDataCenter.RpgTowerManager.GetCanReceiveSupply()
and (XDataCenter.RpgTowerManager.GetCurrentLevel() < XDataCenter.RpgTowerManager.GetMaxLevel())
end
return XRedPointConditionRpgTowerDailyRewardRed