挑战副本bug修改
parent
3c72cd688b
commit
804b2c3f4d
|
@ -272,20 +272,20 @@ function this.SetData(root, data)
|
||||||
end
|
end
|
||||||
|
|
||||||
--检测剩余次数
|
--检测剩余次数
|
||||||
if buyTime<=0 and freeTime<=0 and type==2 then
|
if buyTime<=0 and freeTime<=0 then
|
||||||
PopupTipPanel.ShowTip(Language[10297])
|
PopupTipPanel.ShowTip(Language[10297])
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
--检测妖晶数量
|
--检测妖晶数量
|
||||||
local itemId=storeData.Cost[1][1] --消耗道具
|
local itemId=storeData.Cost[1][1] --消耗道具
|
||||||
|
|
||||||
if BagManager.GetItemCountById(itemId)<storeData.Cost[2][buyTimes] and freeTime<=0 and type==2 then
|
if BagManager.GetItemCountById(itemId)<storeData.Cost[2][buyTimes] and freeTime<=0 then
|
||||||
PopupTipPanel.ShowTip(string.format(Language[10298],GetLanguageStrById(itemConfig[itemId].Name)))
|
PopupTipPanel.ShowTip(string.format(Language[10298],GetLanguageStrById(itemConfig[itemId].Name)))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
--当免费次数不足 是扫荡 购买次数
|
--当免费次数不足 是扫荡 购买次数
|
||||||
if freeTime<=0 and type==2 then
|
if freeTime<=0 then
|
||||||
ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeData.Id,1,function() end)
|
ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeData.Id,1,function() end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ function this.StartFight()
|
||||||
if msg.result==1 then
|
if msg.result==1 then
|
||||||
CarbonManager.UpdateChallengeCopyFloor(this.data.Chapter)
|
CarbonManager.UpdateChallengeCopyFloor(this.data.Chapter)
|
||||||
end
|
end
|
||||||
|
PrivilegeManager.RefreshPrivilegeUsedTimes(this.data.PivilegeID[2],1)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue