乾坤宝盒修改提交
parent
7f7a534a2f
commit
4abdfba82a
|
@ -70,9 +70,11 @@ function QianKunBoxBuyTenPanel:BindEvent()
|
|||
return
|
||||
end
|
||||
local d=RecruitManager.GetExpendData(this.recruitType)
|
||||
local tempItemId=d[1]
|
||||
local tempItemNum=d[2]
|
||||
local maxtimesId=lotterySetting[this.recruitType].MaxTimes
|
||||
local freeTimesId=lotterySetting[this.recruitType].FreeTimes
|
||||
if(BagManager.GetItemCountById(1003)>=10 or BagManager.GetItemCountById(16>=2000)) then
|
||||
if BagManager.GetItemCountById(tempItemId)>=tempItemNum then
|
||||
local recruitTen = function()
|
||||
self:ClosePanel()
|
||||
RecruitManager.RecruitRequest(this.recruitType, function(msg)
|
||||
|
@ -82,7 +84,7 @@ function QianKunBoxBuyTenPanel:BindEvent()
|
|||
end,freeTimesId)
|
||||
end
|
||||
local state = PlayerPrefs.GetInt(PlayerManager.uid.."GeneralPopup_RecruitConfirm"..recType[2])
|
||||
if state==0 and d[1] == 16 then
|
||||
if state==0 and tempItemId == 16 then
|
||||
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.RecruitConfirm,this.recruitType,recruitTen)
|
||||
else
|
||||
recruitTen()
|
||||
|
|
Loading…
Reference in New Issue