【bug】======转换职业后卸下魂宝
parent
f442f6df70
commit
50c78ef888
|
@ -3909,6 +3909,13 @@ function this.RemoveTreasure(dId, jId)
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
function this.ClearHeroAllJewels(did)
|
||||
if heroDatas[did] then
|
||||
heroDatas[did].jewels={}
|
||||
end
|
||||
end
|
||||
|
||||
--根据界面数据加载动态立绘
|
||||
function this.LoadHerolive(_heroData, _objPoint)
|
||||
--TODO:动态加载立绘
|
||||
|
|
|
@ -3286,7 +3286,7 @@ function this.HeroRetureEvent(heroId, func, indexType)
|
|||
end)
|
||||
end
|
||||
|
||||
--请求英雄回溯
|
||||
--改变英雄阵营
|
||||
function this.ChangeHeroPro(heroId,pro,func)
|
||||
local data = HeroInfoProto_pb.GodDevilHeroSelectPropRequest()
|
||||
LogError("HeroRetureEvent "..heroId)
|
||||
|
@ -3297,6 +3297,9 @@ function this.ChangeHeroPro(heroId,pro,func)
|
|||
--local data = buffer:DataByte()
|
||||
HeroManager.SetHeroPro(heroId,pro)
|
||||
PopupTipPanel.ShowTip("阵营转换成功")
|
||||
HeroManager.ClearHeroAllJewels(heroId)
|
||||
--HeroManager.CompareWarPower1(heroId)
|
||||
HeroPropManager.SetDirtyByType(heroId, Hero_Prop_Type.EquipTreasure)
|
||||
if func then
|
||||
func()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue