2023-07-15 02:35:33 +07:00
|
|
|
----------------------------------------------------------------
|
|
|
|
local XRedPointConditionDormRed = {}
|
|
|
|
local SubCondition = nil
|
|
|
|
function XRedPointConditionDormRed.GetSubConditions()
|
|
|
|
SubCondition =
|
|
|
|
SubCondition or
|
|
|
|
{
|
|
|
|
XRedPointConditions.Types.CONDITION_DORM_TASK,
|
|
|
|
XRedPointConditions.Types.CONDITION_DORM_WORK_RED,
|
|
|
|
XRedPointConditions.Types.CONDITION_FURNITURE_CREATE,
|
2024-09-01 22:49:41 +02:00
|
|
|
XRedPointConditions.Types.CONDITION_DORM_QUEST_TERMINAL,
|
2023-07-15 02:35:33 +07:00
|
|
|
}
|
|
|
|
return SubCondition
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function XRedPointConditionDormRed.Check()
|
|
|
|
local red = XRedPointConditionDormWork.Check()
|
|
|
|
if red then
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
|
|
|
|
red = XRedPointConditionFurnitureCreate.Check()
|
|
|
|
if red then
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
red = XRedPointConditionDormTaskType.Check(XDataCenter.TaskManager.TaskType.DormNormal)
|
|
|
|
or XRedPointConditionDormTaskType.Check(XDataCenter.TaskManager.TaskType.DormDaily)
|
|
|
|
if red then
|
|
|
|
return true
|
|
|
|
end
|
2024-09-01 22:49:41 +02:00
|
|
|
red = XRedPointConditionDormQuestTerminal.Check()
|
|
|
|
if red then
|
|
|
|
return true
|
|
|
|
end
|
2023-07-15 02:35:33 +07:00
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
|
|
|
return XRedPointConditionDormRed
|