|
|
@@ -25,6 +25,9 @@ local YunYingLogic = require("yunying.YunYingLogic")
|
|
|
|
|
|
|
|
|
local xianzhiOutPutId = 126
|
|
|
+local xianzhiDelitem_Normal = 100
|
|
|
+local xianzhiDelitem_Special = 300
|
|
|
+
|
|
|
|
|
|
local function makeShopElem(human,config)
|
|
|
|
|
|
@@ -170,11 +173,11 @@ function zhihuanQuery(human, heroID, heroIndex)
|
|
|
local star = heroConfig.star
|
|
|
if heroConfig.grade ~= 4 or star ~= 5 then return end
|
|
|
|
|
|
+ local needItemCnt = xianzhiDelitem_Normal
|
|
|
if camp == 4 or camp == 5 then
|
|
|
- return
|
|
|
+ needItemCnt = xianzhiDelitem_Special
|
|
|
end
|
|
|
|
|
|
- local needItemCnt = 100
|
|
|
-- 判断消耗
|
|
|
local needItemID = ItemDefine.ITEM_XIANZHI_ZHUFU_ID
|
|
|
local nowItemCnt = BagLogic.getItemCnt(human, needItemID)
|
|
|
@@ -189,6 +192,7 @@ function zhihuanQuery(human, heroID, heroIndex)
|
|
|
local nextHero = zhihuanHero(star, camp,heroGrid.id)
|
|
|
if not nextHero then
|
|
|
-- 没有置换目标
|
|
|
+ print("[zhihuanQuery] 没有获取到置换目标 star = "..star.." camp = "..camp.." id = "..heroGrid.id)
|
|
|
return
|
|
|
end
|
|
|
-- 新ID不等于旧ID
|