变身卡修改提交

dev_chengFeng
jiaoyangna 2021-12-06 14:51:13 +08:00
parent 88c10d8031
commit fefd3a7fd5
3 changed files with 9 additions and 2 deletions

View File

@ -161,6 +161,7 @@ GameEvent = {
GetNewItem = "Bag.GetNewItem",--得一个新item
OnRefreshSoulPanelData="Bag.OnRefreshSoulPanelData",
OnBagShowWarPowerChange="Bag.OnBagShowWarPowerChange",
GetNewItemIncarnation = "Bag.GetNewItemIncarnation",--得一个新item
},
Adventure = {
OnAreaStateChange = "Adventure.OnAreaStateChange",

View File

@ -93,6 +93,7 @@ function this.UpDataBagItemIdNumber(_itemData)
CheckRedPointStatus(RedPointType.tailsmanSoul_gold)
CheckRedPointStatus(RedPointType.tailsmanSoul_red)
CheckRedPointStatus(RedPointType.tailsmanSoul_whiteGold)
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.GetNewItemIncarnation)
end
--后端刷新
@ -113,6 +114,7 @@ function this.BackDataRefreshEnerny(msgItemInfo)
CheckRedPointStatus(RedPointType.tailsmanSoul_gold)
CheckRedPointStatus(RedPointType.tailsmanSoul_red)
CheckRedPointStatus(RedPointType.tailsmanSoul_whiteGold)
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.GetNewItemIncarnation)
end
end
@ -605,6 +607,7 @@ function this.GoIntoBackData(drop)
CheckRedPointStatus(RedPointType.tailsmanSoul_gold)
CheckRedPointStatus(RedPointType.tailsmanSoul_red)
CheckRedPointStatus(RedPointType.tailsmanSoul_whiteGold)
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.GetNewItemIncarnation)
end
if (#drop.equipId > 0) then
for i = 1, #drop.equipId do
@ -698,6 +701,7 @@ function this.GetTableByBackDropData(drop)
CheckRedPointStatus(RedPointType.tailsmanSoul_gold)
CheckRedPointStatus(RedPointType.tailsmanSoul_red)
CheckRedPointStatus(RedPointType.tailsmanSoul_whiteGold)
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.GetNewItemIncarnation)
end
if drop.equipId ~= nil and #drop.equipId > 0 then
for i = 1, #drop.equipId do
@ -1132,6 +1136,7 @@ function this.BagIndicationRefresh(msg)
CheckRedPointStatus(RedPointType.tailsmanSoul_gold)
CheckRedPointStatus(RedPointType.tailsmanSoul_red)
CheckRedPointStatus(RedPointType.tailsmanSoul_whiteGold)
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.GetNewItemIncarnation)
-- 超出最大数量限制提示
if msg.isMax and msg.isMax == 1 then
PopupTipPanel.ShowTip(Language[10169])

View File

@ -28,7 +28,7 @@ function this.InitItemDataList()
end
this.SingleIncarnationProDes = ""
this.SingleIncarnationProDes = this.GetproDesStr(this.SingleIncarnationProDes,this.SingleIncarnationPro)
Game.GlobalEvent:AddEvent(GameEvent.Bag.GetNewItem, this.SetItemDataByCardId)
Game.GlobalEvent:AddEvent(GameEvent.Bag.GetNewItemIncarnation, this.GetbagIncarnationData)
end
function this.CreatEmptyItemData(id)
@ -106,6 +106,7 @@ function this.SetItemDataList(dataList,isBack)
end
function this.GetbagIncarnationData()
LogGreen("刷新背包数据刷新变身卡:")
local data = BagManager.GetDataByItemType(ItemType.Incarnation)
for i = 1,#data do
this.SetItemDataByCardId(data[i].id)