|
|
@@ -176,10 +176,23 @@ function addDrawCnt(human, id, cnt)
|
|
|
info.cntHero = (info.cntHero or 0) + cnt
|
|
|
end
|
|
|
|
|
|
+-- 获取总抽卡次数
|
|
|
+function getAllDrawCnt(human, id)
|
|
|
+ local info = getDrawInfo(human, id)
|
|
|
+ if not info then return 0 end
|
|
|
+ local nAllCnt = info.cntHero or 0
|
|
|
+ nAllCnt = info.cntHero2 and nAllCnt + info.cntHero2 or nAllCnt
|
|
|
+ return nAllCnt
|
|
|
+end
|
|
|
+
|
|
|
function setSkip(human, id, skip)
|
|
|
human.db.drawCard.skip = skip or 0
|
|
|
end
|
|
|
|
|
|
+function SetHeroSkip(human, bOperate)
|
|
|
+ human.db.drawCard.skipHero = bOperate
|
|
|
+end
|
|
|
+
|
|
|
-- 连续1-4英雄次数
|
|
|
function getDrawNoGoodCnt(human, id)
|
|
|
local info = getDrawInfo(human, id)
|
|
|
@@ -314,6 +327,8 @@ function query(human)
|
|
|
local needItemID = ItemDefine.ITEM_XIANZHI_BAOZHU_ID
|
|
|
Grid.makeItem(msgRet.qiyuan, needItemID, 1)
|
|
|
msgRet.skip = human.db.drawCard.skip or 0
|
|
|
+ msgRet.bShowHero = human.db.drawCard.skipHero or 0
|
|
|
+ msgRet.nHighCnt = getAllDrawCnt(human, DRAWCARD_ID2)
|
|
|
Msg.send(msgRet, human.fd)
|
|
|
end
|
|
|
|
|
|
@@ -324,6 +339,7 @@ function sendDrawOp(human, id, op, heroList, items, heroNewList, heroIndexList,i
|
|
|
msgRet.leftNoSRRCnt = DRAWCARD_40 - getDrawNoSSRCnt(human, DRAWCARD_ID2)
|
|
|
msgRet.leftNewSRRCnt = getDrawNewSSRCnt(human, DRAWCARD_ID8)
|
|
|
msgRet.leftNewSRR40Cnt = DRAWCARD_40 - getDrawNoSSRCnt(human, DRAWCARD_ID8)
|
|
|
+ msgRet.nHighCnt = getAllDrawCnt(human, DRAWCARD_ID2)
|
|
|
local dataNet = msgRet.data
|
|
|
dataNet.jifen = getJifen(human)
|
|
|
dataNet.id = id
|