|
|
@@ -28,14 +28,16 @@ local RoleDefine = require("role.RoleDefine")
|
|
|
local ObjHuman = require("core.ObjHuman")
|
|
|
local RoleSystemLogic = require("roleSystem.RoleSystemLogic")
|
|
|
local RoleSystemDefine = require("roleSystem.RoleSystemDefine")
|
|
|
-local HuanJingTowerLogic = require("huanjingTower.HuanjingTowerLogic")
|
|
|
+-- local HuanJingTowerLogic = require("huanjingTower.HuanjingTowerLogic")
|
|
|
local TalismanLogic = require("talisman.TalismanLogic")
|
|
|
local TriggerLogic = require("trigger.TriggerLogic")
|
|
|
local TriggerDefine = require("trigger.TriggerDefine")
|
|
|
+local ChengjiuLogic = require("chengjiu.ChengjiuLogic")
|
|
|
|
|
|
local ELF_UPGRADELV_LOG_TAG = "elfUpGradeLv"
|
|
|
local ELF_UPGRADESTAR_LOG_TAG = "elfUpGradeStar"
|
|
|
-local ELF_COND_TOWER_LEVEL = 600
|
|
|
+-- local ELF_COND_TOWER_LEVEL = 600
|
|
|
+local ELF_2_CHENGJIU_TASKID = 406 -- 精灵系统对应的成就任务Id
|
|
|
|
|
|
|
|
|
local function initElfData(human)
|
|
|
@@ -202,10 +204,16 @@ end
|
|
|
|
|
|
--是否开启本系统
|
|
|
local function isOpen(human)
|
|
|
- local towerLevel = HuanJingTowerLogic.getTowerLevel(human)
|
|
|
- if towerLevel >= ELF_COND_TOWER_LEVEL then
|
|
|
+ -- local towerLevel = HuanJingTowerLogic.getTowerLevel(human)
|
|
|
+ -- if towerLevel >= ELF_COND_TOWER_LEVEL then
|
|
|
+ -- return true
|
|
|
+ -- end
|
|
|
+ -- return false
|
|
|
+ local state = ChengjiuLogic.GetTaskState(human, ELF_2_CHENGJIU_TASKID)
|
|
|
+ if state == 2 then
|
|
|
return true
|
|
|
end
|
|
|
+
|
|
|
return false
|
|
|
end
|
|
|
-- 重算战力
|