皮肤分解提交

dev_chengFeng
jiaoyangna 2020-11-05 14:18:32 +08:00
parent 14812dab65
commit 3bc2b74ce5
2 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ function this.CaculateSkinProVal(_heroId)
local heroSkinAllHeroProVal = {}
local heroData = HeroManager.GetSingleHeroData(_heroId)
if heroData.skinId ~= 0 then
if this.skinDatas[heroData.skinId].MonomerProperty and #this.skinDatas[heroData.skinId].MonomerProperty > 0 then
if this.skinDatas[heroData.skinId] and this.skinDatas[heroData.skinId].MonomerProperty and #this.skinDatas[heroData.skinId].MonomerProperty > 0 then
for _,v in ipairs(this.skinDatas[heroData.skinId].MonomerProperty) do
if not heroSkinSingleProVal[v[1]] then
heroSkinSingleProVal[v[1]] = 0
@ -88,7 +88,7 @@ function this.CaculateSkinProVal(_heroId)
end
for _,v in pairs(this.skinDatas) do
if heroData.skinId ~= v.id then
if this.skinDatas[v.id].UnlockProperty and #this.skinDatas[v.id].UnlockProperty > 0 then
if this.skinDatas[v.id] and this.skinDatas[v.id].UnlockProperty and #this.skinDatas[v.id].UnlockProperty > 0 then
for _,n in ipairs(this.skinDatas[v.id].UnlockProperty) do
if not heroSkinAllHeroProVal[n[1]] then
heroSkinAllHeroProVal[n[1]] = 0

View File

@ -75,8 +75,8 @@ function RewardItemSingleShowPopup:BindEvent()
elseif itemConfigData.ItemType == ItemType.ChangeName then
UIManager.OpenPanel(UIName.CreateNamePopup)
elseif itemConfigData.ItemType == ItemType.Skin then
local group = ConfigManager.GetConfigData(ConfigName.RewardGroup,itemConfig[itemSid].ResolveReward).ShowItem
MsgPanel.ShowTwo(string.format("分解后可获得%s%s,是否继续分解",group[2],itemConfig[group[1]].Name),function()
local group = ConfigManager.GetConfigData(ConfigName.RewardGroup,tonumber(itemConfig[itemSid].ResolveReward)).ShowItem
MsgPanel.ShowTwo(string.format("分解后可获得%s%s,是否继续分解",group[1][2],itemConfig[group[1][1]].Name),function()
end, function()
local curResolveAllItemList = {}
table.insert(curResolveAllItemList,{itemId = itemSid,itemNum = 1})