化身属性显示不对bug修改

dev_chengFeng
yuanshuai 2022-04-26 14:21:24 +08:00
parent f65ddb2eda
commit f187acdf52
1 changed files with 4 additions and 11 deletions

View File

@ -54,13 +54,7 @@ function this.CreatEmptyItemData(id)
this.itemDataList[id].icon = itemConfig[ChangingCard[id].CardId].ResourceID
this.itemDataList[id].heroId = ChangingCard[id].desc2
this.itemDataList[id].proDatas =this.GetChangeCardProperty(id)
this.itemDataList[id].proDesList = {}
local str = "激活属性:"
str = this.GetproDesStr(str,this.itemDataList[id].proDatas)
table.insert(this.itemDataList[id].proDesList,str)
this.itemDataList[id].skillDatas = ChangingCard[id].Skill[1]
this.itemDataList[id].skillDes = PassiveSkillConfig[this.itemDataList[id].skillDatas].Desc
table.insert(this.itemDataList[id].proDesList,this.itemDataList[id].skillDes)
end
end
@ -72,7 +66,7 @@ function this.GetproDesStr(_str,dataList)
end
return str
end
--获取化身卡指定星级的技能描述
function this.GetSkillDesStr(id,Star)
local skillId= ChangingCard[id].Skill[Star+1]
local skillDes= PassiveSkillConfig[skillId].Desc
@ -117,6 +111,7 @@ function this.SetItemDataList(dataList,_incarnationForceLv)
this.SetLevel(dataList[i].id,dataList[i].level)
this.SetStar(dataList[i].id,dataList[i].star)
this.SetSkillData(dataList[i].id)
this.SetPropDatas(dataList[i].id)
this.incarnationForceLv=_incarnationForceLv
end
HeroPropManager.SetFuncPropDirty(Func_Prop_Type.Incarnation)
@ -162,14 +157,12 @@ end
function this.SetStar(id,star)
this.itemDataList[id].star=star
end
--设置激活技能数据
function this.SetSkillData(id)
local changeCardData=this.itemDataList[id]
changeCardData.skillDatas = ChangingCard[id].Skill[changeCardData.star+1]
this.itemDataList[id].skillDes = PassiveSkillConfig[changeCardData.skillDatas].Desc
this.itemDataList[id].proDesList[2]=this.itemDataList[id].skillDes
end
--设置变身卡所有属性加成
function this.SetPropDatas(id)
this.itemDataList[id].proDatas =this.GetChangeCardProperty(id)
end