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

26 lines
No EOL
763 B
Lua

local Events = nil
local XRedPointConditionKillZonePluginOperate = {}
function XRedPointConditionKillZonePluginOperate.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_ITEM_COUNT_UPDATE_PREFIX .. XKillZoneConfigs.ItemIdCoinB),
XRedPointEventElement.New(XEventId.EVENT_KILLZONE_PLUGIN_OPERATE_CHANGE),
}
return Events
end
function XRedPointConditionKillZonePluginOperate.Check()
if not XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.KillZone) then
return false
end
if not XDataCenter.KillZoneManager.IsOpen() then
return false
end
return XDataCenter.KillZoneManager.CheckPluginsCanOperateRedPoint()
end
return XRedPointConditionKillZonePluginOperate