|
|
@@ -47,6 +47,7 @@ local GiftLogic = require("topup.GiftLogic")
|
|
|
local WarOrder = require("shop.WarOrder")
|
|
|
local TriggerLogic = require("trigger.TriggerLogic")
|
|
|
local TriggerDefine = require("trigger.TriggerDefine")
|
|
|
+local TalismanLogic = require("talisman.TalismanLogic")
|
|
|
|
|
|
|
|
|
TOWER_LV_HEAD_MAX = 15 -- 每层 储存 玩家头像数据
|
|
|
@@ -70,6 +71,14 @@ REWARD_STATUS_HADGET = 2 -- 已领
|
|
|
TOWER_TONGGUAN_TYPE = 1 -- 通关奖励
|
|
|
TOWER_KING_TYPE = 2 -- 通关王者奖励
|
|
|
|
|
|
+
|
|
|
+--秘宝加成
|
|
|
+local function HJ_GetTalismanAdd(human)
|
|
|
+ local dailyFreeTimes = TalismanLogic.getTalismanAdd(human, TalismanLogic.OTHER_EFFECT_TBL.HJ_DAILY_Free) or 0
|
|
|
+ return dailyFreeTimes
|
|
|
+end
|
|
|
+
|
|
|
+
|
|
|
function initSeverTower(nowLv)
|
|
|
local towerDB = HuanjingTowerDB.query(#HuanjingTowerExcel.huanjingTower)
|
|
|
if towerDB then
|
|
|
@@ -877,7 +886,8 @@ end
|
|
|
|
|
|
function getMaxCnt(human)
|
|
|
local buyCnt = getBuyCnt(human)
|
|
|
- return TILI_FREE + buyCnt
|
|
|
+ local dailyFreeTimes = HJ_GetTalismanAdd(human)
|
|
|
+ return TILI_FREE + buyCnt + dailyFreeTimes
|
|
|
end
|
|
|
|
|
|
-- 获取剩余可挑战或者扫荡次数
|