[放生灵兽]灵兽放生显示返还货币修改

dev_chengFeng
wangzhenxing 2020-11-02 17:36:08 +09:00
parent 869f54799e
commit 92d5b659a1
1 changed files with 5 additions and 4 deletions

View File

@ -124,9 +124,10 @@ function this:BindEvent()
--升星消耗
local lingshouConfig=ConfigManager.GetConfigData(ConfigName.SpiritAnimal,value.id)
local haveNum=0
if value.star>0 then
local starConfig=ConfigManager.GetConfigDataByDoubleKey(ConfigName.SpiritAnimalStar,"Star",value.star,"Quality",value.quality)
if starConfig then
if starConfig then
haveNum=starConfig.SumItemNum
local starMatrs=starConfig.SumConsume
--消耗材料
@ -142,7 +143,7 @@ function this:BindEvent()
allCoin=allCoin+lingshouConfig.CoinReturn[2]*(haveNum+1)
end
--加上所有的分解币
table.insert(allMaterials,{1203,allCoin})
table.insert(allMaterials,{1205,allCoin})
else--灵兽碎片
local itemConfig=ConfigManager.GetConfigData(ConfigName.ItemConfig,selectChipId)
if itemConfig then
@ -351,8 +352,8 @@ function this.SingleHeroDataShow(go,_heroData,isGray)
return
end
choosed:SetActive(true)
selectHeroData[heroData.dynamicId]=heroData
this.selectText.text = Language[11775]..LengthOfTable(selectHeroData).."/"..maxSelectNum
selectHeroData[heroData.dynamicId]=heroData
this.selectText.text = Language[11775]..LengthOfTable(selectHeroData).."/"..maxSelectNum
--如果选中灵兽的数量为最大
if LengthOfTable(selectHeroData)==maxSelectNum then
PopupTipPanel.ShowTip(string.format(Language[12396],maxSelectNum))