【碎片合成】

dev_chengFeng
ZhangBiao 2021-04-27 15:28:18 +08:00
parent 3512d1da7e
commit eb81667c29
1 changed files with 4 additions and 1 deletions

View File

@ -299,7 +299,10 @@ function this.OnShowLayout3Data()
local maxCompoundValue = math.floor(itemData.num/itemData.itemConfig.UsePerCount)
compoundMaxNum=maxCompoundValue > gameSetting.HeroCompoundLimit and gameSetting.HeroCompoundLimit or maxCompoundValue
endHeroNum=gameSetting.HeroNumlimit-LengthOfTable(HeroManager.GetAllHeroDatas())
compoundMaxNum= 50 > endHeroNum and endHeroNum or 50
compoundMaxNum=compoundMaxNum >endHeroNum and endHeroNum or compoundMaxNum
if compoundMaxNum > 50 then
compoundMaxNum = 50
end
elseif itemData.itemConfig.ItemType==ItemType.Box then--宝箱
this.nameText.text=Language[10194]
this.btnCompoundText.text=Language[10195]