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

18 lines
No EOL
465 B
Lua

----------------------------------------------------------------
--角色解锁红点检测
local XRedPointConditionCharacterUnlock = {}
function XRedPointConditionCharacterUnlock.Check(characterId)
if not characterId then
return false
end
---@type XCharacterAgency
local ag = XMVCA:GetAgency(ModuleId.XCharacter)
local canUnlock = ag:CanCharacterUnlock(characterId)
return canUnlock
end
return XRedPointConditionCharacterUnlock