【ID1010413】

【新功能】玩家等级提升时 发放道具进背包
dev_chengFeng
jiaoyangna 2021-10-08 11:34:48 +08:00
parent 2dbb544a46
commit 8de35750c6
2 changed files with 3 additions and 8 deletions

View File

@ -746,7 +746,6 @@ function this.GetTableByBackDropData(drop)
-- end
-- LogBlue("drop.soulEquip:"..#drop.soulEquip)
if drop.soulEquip ~= nil and #drop.soulEquip > 0 then
Log("drop.especialEquipId " .. #drop.soulEquip)
for i = 1, #drop.soulEquip do
local itemdata = {}
itemdata.itemType = 5
@ -769,7 +768,6 @@ function this.GetTableByBackDropData(drop)
end
end
if drop.pokemon ~= nil and #drop.pokemon > 0 then
Log("drop.pokemon " .. #drop.pokemon)
for i = 1, #drop.pokemon do
local itemdata = {}
itemdata.sId = drop.pokemon[i].tempId
@ -830,7 +828,6 @@ function this.GetItemListFromTempBag(drop, isSave)
itemdata.sId = equipId
itemdata.backData = drop.equipId[i]
itemdata.configData = itemConfig[equipId]
Log("战斗结算掉落装备ID是 drop.equipId[i].equipId" .. equipId)
itemdata.name = GetLanguageStrById(itemdata.configData.Name)
itemdata.frame = GetQuantityImageByquality(itemdata.configData.Quantity)
itemdata.icon = GetResourcePath(itemdata.configData.ResourceID)
@ -866,7 +863,6 @@ function this.GetItemListFromTempBag(drop, isSave)
end
if drop.soulEquip ~= nil and #drop.soulEquip > 0 then
Log("掉落宝物数量 " .. #drop.soulEquip)
for i = 1, #drop.soulEquip do
local itemdata = {}
itemdata.itemType = 5
@ -895,7 +891,6 @@ function this.GetItemListFromTempBag(drop, isSave)
end
end
if drop.pokemon ~= nil and #drop.pokemon > 0 then
Log("drop.pokemon " .. #drop.pokemon)
for i = 1, #drop.pokemon do
local itemdata = {}
itemdata.itemType = 6
@ -935,7 +930,6 @@ function this.GetAllTempBagData()
itemdata.Quantity = itemdata.configData.Quantity
itemdata.icon = GetResourcePath(itemdata.configData.ResourceID)
itemdata.num = v.itemNum
Log("道具" .. v.itemNum)
mapItemList[#mapItemList + 1] = itemdata
end

View File

@ -648,8 +648,9 @@ function this.UpdateUserExp(buffer)
local message = PlayerInfoProto_pb.UpdateUserExpIndicaiton()
message:ParseFromString(data)
PlayerManager.BcakUpdateUserExp(message)
if message.drop and #message.drop > 0 then
BagManager.GetItemListFromTempBag(message.drop)
end
end
function this.UpdateSecretSeasonData(buffer)