[bug]=====飞升界面英雄临时数据修改
parent
eff2800c35
commit
764f61cfb2
|
@ -30,7 +30,12 @@ Condition_Prop_Func = {
|
|||
-- 判断元素是否符合条件
|
||||
--LogError("zhenyingid=="..target.zhenYingId)
|
||||
-- LogError("target.did=="..target.dId)
|
||||
local heroData=HeroManager.GetSingleHeroData(target.dId)
|
||||
local heroId=target.dId
|
||||
local isTrue=HeroTempPropManager.IsTempHeroID(heroId)
|
||||
if isTrue then
|
||||
heroId=HeroTempPropManager.GetDynamicIdByTempId(heroId)
|
||||
end
|
||||
local heroData=HeroManager.GetSingleHeroData(heroId)
|
||||
if config and args and heroData.changeProId == tonumber(args[1]) then
|
||||
return propList
|
||||
end
|
||||
|
|
|
@ -90,13 +90,11 @@ function this:OnShow(_parent,_args)
|
|||
end
|
||||
function this:Refresh(_page)
|
||||
curPage = _page
|
||||
LogError("page==".._page)
|
||||
this.light.transform:SetParent(this.btnList[_page].transform)
|
||||
this.light.transform.localPosition = Vector3.zero
|
||||
|
||||
local heroDatas={}
|
||||
for i = 1, #heros do
|
||||
LogError(tostring(heros[i]))
|
||||
local CONFIG = heros[i][2] == 6 and itemConfig or heroConfig
|
||||
if CONFIG[heros[i][1]] then
|
||||
if not heroDatas[heros[i][2]] then
|
||||
|
|
Loading…
Reference in New Issue