礼物显示修改

dev_one_discount
wangzhenxing 2023-09-20 11:52:31 +08:00
parent f0919b9ce8
commit e37b4befbd
3 changed files with 11 additions and 2 deletions

View File

@ -455,7 +455,7 @@ PanelType = {
-- FriendShop = StoreTypeConfig[17].ResourcesBar, -- 友情商店 -- FriendShop = StoreTypeConfig[17].ResourcesBar, -- 友情商店
-- ChoasShop = StoreTypeConfig[19].ResourcesBar, -- 混沌商店 -- ChoasShop = StoreTypeConfig[19].ResourcesBar, -- 混沌商店
-- TopMatchShop = StoreTypeConfig[21].ResourcesBar, -- 巅峰赛商店 -- TopMatchShop = StoreTypeConfig[21].ResourcesBar, -- 巅峰赛商店
MonsterCamp = { 14, 16}, -- 兽潮 MonsterCamp = { 14, 16,124}, -- 兽潮
HeroReturn = { 14, 16}, -- 回溯{ 14, 16, 70}, HeroReturn = { 14, 16}, -- 回溯{ 14, 16, 70},
LuckyTreasure = { 14, 16}, -- 幸运探宝 LuckyTreasure = { 14, 16}, -- 幸运探宝
AdvancedTreasure = { 14, 16, 61}, -- 高级探宝 AdvancedTreasure = { 14, 16, 61}, -- 高级探宝

View File

@ -59,8 +59,8 @@ function this.SetHeroGift(id,list,type)
elseif type==2 then elseif type==2 then
table.removebyvalue(this.allHeroGifts[id],list[i]) table.removebyvalue(this.allHeroGifts[id],list[i])
end end
end end
HeroManager.ChangeHeroGift(id,this.allHeroGifts[id])
end end
--设置主角礼物 --设置主角礼物
function this.SetPlayerGift(list) function this.SetPlayerGift(list)

View File

@ -145,6 +145,7 @@ function this.UpdateHeroDatas(_msgHeroData, isFindHandBook)
heroData.soulPrintList = this.SetSoulPrint(_msgHeroData.soulPos,heroData.dynamicId) heroData.soulPrintList = this.SetSoulPrint(_msgHeroData.soulPos,heroData.dynamicId)
heroData.godPrintList = this.SetGodPrint(_msgHeroData.godSeals,heroData.dynamicId) heroData.godPrintList = this.SetGodPrint(_msgHeroData.godSeals,heroData.dynamicId)
GiftManager.InitHeroGift(_msgHeroData.id,_msgHeroData.giftEquipIds) GiftManager.InitHeroGift(_msgHeroData.id,_msgHeroData.giftEquipIds)
heroData.giftIds=_msgHeroData.giftEquipIds
--heroData.equipStrongList=this.GetEquipStrongData(_msgHeroData.equipStrong,_msgHeroData.equipAdvanceLv) --heroData.equipStrongList=this.GetEquipStrongData(_msgHeroData.equipStrong,_msgHeroData.equipAdvanceLv)
--heroData.equipAdvanceLv =_msgHeroData.equipAdvanceLv --heroData.equipAdvanceLv =_msgHeroData.equipAdvanceLv
heroData.skillIdList = {} heroData.skillIdList = {}
@ -4045,6 +4046,14 @@ function this.GetIsShowTalismanRedPoint(curHeroData)
return true return true
end end
--改变英雄礼物
function this.ChangeHeroGift(_dyn,list)
if heroDatas[_dyn] then
heroDatas[_dyn].giftIds=list
end
end
function this.ResetHero(dynamicloadId) function this.ResetHero(dynamicloadId)
if heroDatas[dynamicloadId] then if heroDatas[dynamicloadId] then
heroDatas[dynamicloadId].lv = 1 heroDatas[dynamicloadId].lv = 1