PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionCharacterEnhanceSkill.lua
2024-09-01 22:49:41 +02:00

28 lines
No EOL
934 B
Lua

----------------------------------------------------------------
--角色技能红点检测
local XRedPointConditionCharacterEnhanceSkill = {}
local Events = nil
function XRedPointConditionCharacterEnhanceSkill.GetSubEvents()--TODO需要写具体逻辑
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_CHARACTER_LEVEL_UP),
XRedPointEventElement.New(XEventId.EVENT_CHARACTER_ENHANCESKILL_UP),
XRedPointEventElement.New(XEventId.EVENT_CHARACTER_ENHANCESKILL_UNLOCK),
}
return Events
end
function XRedPointConditionCharacterEnhanceSkill.Check(characterId)
if not characterId then
return false
end
if not XFunctionManager.JudgeOpen(XFunctionManager.FunctionName.CharacterEnhanceSkill) then
return false
end
return XDataCenter.CharacterManager.CheckCharacterEnhanceSkillShowRed(characterId)
end
return XRedPointConditionCharacterEnhanceSkill