神兵bug修改

dev_chengFeng
yuanshuai 2023-04-06 13:40:13 +08:00
parent d6c082583a
commit 8af6417b72
3 changed files with 12 additions and 6 deletions

View File

@ -81,7 +81,7 @@ function GodWeaponMainPanel:BindEvent()
UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.Pokemon, pos.x, pos.y)
end)
Util.AddClick(this.btnShop, function()
JumpManager.GoJump(3002)
JumpManager.GoJump(3007)
end)
Util.AddClick(this.btnFen, function()
UIManager.OpenPanel(UIName.ResolvePanel,4)

View File

@ -206,6 +206,7 @@ function this:OnShow()
end
function this.UpdateWinInfo()
costItems={}
CheckRedPointStatus(RedPointType.GodWeapon)
local upLvRed = GodWeaponManager.CheckUpLvRedPoint(godWeaponData)
this.upLvTabRedPoint:SetActive(upLvRed)
@ -226,7 +227,10 @@ function this.UpdateWinInfo()
curPropDic=GodWeaponManager.GetSinglePokemonAddProData(godWeaponData.Did,godWeaponData.star,godWeaponData.lv)
if not isLimit then
nextPropDic=GodWeaponManager.GetSinglePokemonAddProData(godWeaponData.Did,godWeaponData.star,godWeaponData.lv+1)
costItems=ConfigManager.GetConfigDataByDoubleKey(ConfigName.ShenBingLevel,"Level",godWeaponData.lv,"Quality",godWeaponData.config.Quality).Consume
local upLvCosts=ConfigManager.GetConfigDataByDoubleKey(ConfigName.ShenBingLevel,"Level",godWeaponData.lv,"Quality",godWeaponData.config.Quality).Consume
for i = 1, #upLvCosts do
costItems[i]=upLvCosts[i]
end
end
this.limitText.text="等级已满"
else

View File

@ -101,9 +101,9 @@ function this:BindEvent()
return
end
--奖励物品
--所有材料
local allMaterials={}
local pokemonIds={}
--所有材料
local allMaterials={}
local pokemonIds={}
--灵兽
if isPokemon then
local allCoin=0
@ -125,7 +125,9 @@ function this:BindEvent()
end
end
else
table.insert(allMaterials,{mat[1],mat[2]})
if mat[2]>0 then
table.insert(allMaterials,{mat[1],mat[2]})
end
end
end