parent
2dbb544a46
commit
8de35750c6
|
|
@ -746,7 +746,6 @@ function this.GetTableByBackDropData(drop)
|
||||||
-- end
|
-- end
|
||||||
-- LogBlue("drop.soulEquip:"..#drop.soulEquip)
|
-- LogBlue("drop.soulEquip:"..#drop.soulEquip)
|
||||||
if drop.soulEquip ~= nil and #drop.soulEquip > 0 then
|
if drop.soulEquip ~= nil and #drop.soulEquip > 0 then
|
||||||
Log("drop.especialEquipId " .. #drop.soulEquip)
|
|
||||||
for i = 1, #drop.soulEquip do
|
for i = 1, #drop.soulEquip do
|
||||||
local itemdata = {}
|
local itemdata = {}
|
||||||
itemdata.itemType = 5
|
itemdata.itemType = 5
|
||||||
|
|
@ -769,7 +768,6 @@ function this.GetTableByBackDropData(drop)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if drop.pokemon ~= nil and #drop.pokemon > 0 then
|
if drop.pokemon ~= nil and #drop.pokemon > 0 then
|
||||||
Log("drop.pokemon " .. #drop.pokemon)
|
|
||||||
for i = 1, #drop.pokemon do
|
for i = 1, #drop.pokemon do
|
||||||
local itemdata = {}
|
local itemdata = {}
|
||||||
itemdata.sId = drop.pokemon[i].tempId
|
itemdata.sId = drop.pokemon[i].tempId
|
||||||
|
|
@ -830,7 +828,6 @@ function this.GetItemListFromTempBag(drop, isSave)
|
||||||
itemdata.sId = equipId
|
itemdata.sId = equipId
|
||||||
itemdata.backData = drop.equipId[i]
|
itemdata.backData = drop.equipId[i]
|
||||||
itemdata.configData = itemConfig[equipId]
|
itemdata.configData = itemConfig[equipId]
|
||||||
Log("战斗结算掉落装备ID是 drop.equipId[i].equipId" .. equipId)
|
|
||||||
itemdata.name = GetLanguageStrById(itemdata.configData.Name)
|
itemdata.name = GetLanguageStrById(itemdata.configData.Name)
|
||||||
itemdata.frame = GetQuantityImageByquality(itemdata.configData.Quantity)
|
itemdata.frame = GetQuantityImageByquality(itemdata.configData.Quantity)
|
||||||
itemdata.icon = GetResourcePath(itemdata.configData.ResourceID)
|
itemdata.icon = GetResourcePath(itemdata.configData.ResourceID)
|
||||||
|
|
@ -866,7 +863,6 @@ function this.GetItemListFromTempBag(drop, isSave)
|
||||||
end
|
end
|
||||||
|
|
||||||
if drop.soulEquip ~= nil and #drop.soulEquip > 0 then
|
if drop.soulEquip ~= nil and #drop.soulEquip > 0 then
|
||||||
Log("掉落宝物数量 " .. #drop.soulEquip)
|
|
||||||
for i = 1, #drop.soulEquip do
|
for i = 1, #drop.soulEquip do
|
||||||
local itemdata = {}
|
local itemdata = {}
|
||||||
itemdata.itemType = 5
|
itemdata.itemType = 5
|
||||||
|
|
@ -895,7 +891,6 @@ function this.GetItemListFromTempBag(drop, isSave)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if drop.pokemon ~= nil and #drop.pokemon > 0 then
|
if drop.pokemon ~= nil and #drop.pokemon > 0 then
|
||||||
Log("drop.pokemon " .. #drop.pokemon)
|
|
||||||
for i = 1, #drop.pokemon do
|
for i = 1, #drop.pokemon do
|
||||||
local itemdata = {}
|
local itemdata = {}
|
||||||
itemdata.itemType = 6
|
itemdata.itemType = 6
|
||||||
|
|
@ -935,7 +930,6 @@ function this.GetAllTempBagData()
|
||||||
itemdata.Quantity = itemdata.configData.Quantity
|
itemdata.Quantity = itemdata.configData.Quantity
|
||||||
itemdata.icon = GetResourcePath(itemdata.configData.ResourceID)
|
itemdata.icon = GetResourcePath(itemdata.configData.ResourceID)
|
||||||
itemdata.num = v.itemNum
|
itemdata.num = v.itemNum
|
||||||
Log("道具" .. v.itemNum)
|
|
||||||
mapItemList[#mapItemList + 1] = itemdata
|
mapItemList[#mapItemList + 1] = itemdata
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -648,8 +648,9 @@ function this.UpdateUserExp(buffer)
|
||||||
local message = PlayerInfoProto_pb.UpdateUserExpIndicaiton()
|
local message = PlayerInfoProto_pb.UpdateUserExpIndicaiton()
|
||||||
message:ParseFromString(data)
|
message:ParseFromString(data)
|
||||||
PlayerManager.BcakUpdateUserExp(message)
|
PlayerManager.BcakUpdateUserExp(message)
|
||||||
|
if message.drop and #message.drop > 0 then
|
||||||
|
BagManager.GetItemListFromTempBag(message.drop)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.UpdateSecretSeasonData(buffer)
|
function this.UpdateSecretSeasonData(buffer)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue