|
|
@@ -17,6 +17,7 @@ local Util = require("common.Util")
|
|
|
local TriggerDefine = require("trigger.TriggerDefine")
|
|
|
local TriggerLogic = require("trigger.TriggerLogic")
|
|
|
local TalismanLogic = require("talisman.TalismanLogic")
|
|
|
+local ChengjiuLogic = require("chengjiu.ChengjiuLogic")
|
|
|
|
|
|
|
|
|
local GiftLogic
|
|
|
@@ -26,6 +27,7 @@ local relicUpgradeConfig = relicModule.RelicUpgrade -- 获取升级配置表
|
|
|
local relicDataConfig = relicModule.RelicData -- 获取遗物数据表
|
|
|
local COND_TOWER_LEVEL = 500 --开启本系统需要通关恶魔之塔的层数
|
|
|
local WINNERRELIC_HEROSTAR = 13 -- 需要穿戴的星级
|
|
|
+local WINNERRELIC_2_CHENGJIU_TASKID = 405 -- 圣遗物系统对应的成就任务Id
|
|
|
--[[
|
|
|
DB =
|
|
|
{{
|
|
|
@@ -51,10 +53,17 @@ end
|
|
|
|
|
|
--判断是否开启圣者遗物
|
|
|
local function isOpen(human)
|
|
|
- local towerLevel = HuanJingTowerLogic.getTowerLevel(human)
|
|
|
- if towerLevel >= COND_TOWER_LEVEL then
|
|
|
+ -- local towerLevel = HuanJingTowerLogic.getTowerLevel(human)
|
|
|
+ -- if towerLevel >= COND_TOWER_LEVEL then
|
|
|
+ -- return true
|
|
|
+ -- end
|
|
|
+ -- return false
|
|
|
+
|
|
|
+ local state = ChengjiuLogic.GetTaskState(human, WINNERRELIC_2_CHENGJIU_TASKID)
|
|
|
+ if state == 2 then
|
|
|
return true
|
|
|
end
|
|
|
+
|
|
|
return false
|
|
|
end
|
|
|
-- 获取对应类型的遗物
|
|
|
@@ -608,6 +617,18 @@ function isDot(human, dotConfig)
|
|
|
end
|
|
|
end
|
|
|
|
|
|
+
|
|
|
+-- 外部调用, 本系统是否开启
|
|
|
+function ModuleisOpen(human)
|
|
|
+ local towerLevel = HuanJingTowerLogic.getTowerLevel(human)
|
|
|
+ if towerLevel >= COND_TOWER_LEVEL then
|
|
|
+ return true
|
|
|
+ end
|
|
|
+ return false
|
|
|
+end
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
function WinnerRelic_GetSkillID(nRelicID, nStar)
|
|
|
local tConfig = relicDataConfig[nRelicID]
|
|
|
if nil == tConfig then
|