【云游商人】怎加妖晶数量检测
parent
99602b3008
commit
75be84bbff
|
@ -198,20 +198,23 @@ function this.UpdateSingleTypeData(actType)
|
|||
end
|
||||
|
||||
function this.CheckSingleRed(data)
|
||||
if data.progress == 0 then
|
||||
local list = BagManager.GetBagItemDataByItemType(ItemBaseType.Equip)
|
||||
local EquipedEquipList = HeroManager.GetEquipedEquipList()
|
||||
for i = 1, #data.otherData.needItems do
|
||||
for j = 1, #list do
|
||||
if data.otherData.needItems[i] == list[j].itemConfig.Id then
|
||||
return true
|
||||
local NeedCost = ConfigManager.GetConfigData(ConfigName.ComposeBook,data.otherData.needItems[1]).NeedCost
|
||||
if data.progress > 0 then
|
||||
if BagManager.GetTotalItemNum(NeedCost[1][1]) >= NeedCost[1][2] then
|
||||
local list = BagManager.GetBagItemDataByItemType(ItemBaseType.Equip)
|
||||
local EquipedEquipList = HeroManager.GetEquipedEquipList()
|
||||
for i = 1, #data.otherData.needItems do
|
||||
for j = 1, #list do
|
||||
if data.otherData.needItems[i] == list[j].itemConfig.Id then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
for i = 1, #data.otherData.needItems do
|
||||
for j = 1, #EquipedEquipList do
|
||||
if data.otherData.needItems[i] == EquipedEquipList[j] then
|
||||
return true
|
||||
for i = 1, #data.otherData.needItems do
|
||||
for j = 1, #EquipedEquipList do
|
||||
if data.otherData.needItems[i] == EquipedEquipList[j] then
|
||||
return true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue