【合成优化修改】
parent
8376d74230
commit
f25f253479
|
@ -45,12 +45,13 @@ function RewardItemSingleShowPopup:BindEvent()
|
|||
end)
|
||||
Util.AddClick(this.btnSure, function()
|
||||
if itemConfigData.ItemType == ItemType.HeroDebris then
|
||||
if BagManager.GetItemCountById(itemSid) > BagManager.bagDatas[itemSid].itemConfig.UsePerCount then
|
||||
local sum = BagManager.GetItemCountById(itemSid) / BagManager.bagDatas[itemSid].itemConfig.UsePerCount
|
||||
if sum >= 2 then
|
||||
local _itemData = BagManager.bagDatas[itemSid]
|
||||
UIManager.OpenPanel(UIName.BagResolveAnCompoundPanel, 3, _itemData, function()
|
||||
func()
|
||||
end)
|
||||
elseif BagManager.GetItemCountById(itemSid) == BagManager.bagDatas[itemSid].itemConfig.UsePerCount then
|
||||
elseif sum >= 1 and sum < 2 then
|
||||
-- body
|
||||
local compoundNum = 1
|
||||
local _itemData = BagManager.bagDatas[itemSid]
|
||||
|
|
Loading…
Reference in New Issue