解锁逻辑

This commit is contained in:
chenxi 2023-05-29 15:19:24 +08:00
parent d47baeebc1
commit 71b9dd23a1
3 changed files with 23 additions and 10 deletions

View File

@ -231,7 +231,6 @@ local hero = {
["model_id"]="p0011",
["icon"]="16",
["item_id"]=14001,
["unlock_chapter"]=25,
["is_show"]=1
},
[22001]={

View File

@ -3730,7 +3730,10 @@ local skill = {
["link"]=1,
["position"]=5,
["method"]=1,
["skill_type"]=0,
["skill_type"]=1,
["boardrange"]={
},
["battle_icon"]="5",
["effect_type"]=1,
["trigger"]=1,
@ -3753,7 +3756,10 @@ local skill = {
["link"]=1,
["position"]=5,
["method"]=1,
["skill_type"]=0,
["skill_type"]=1,
["boardrange"]={
},
["battle_icon"]="5",
["effect_type"]=1,
["trigger"]=1,
@ -3776,7 +3782,10 @@ local skill = {
["link"]=1,
["position"]=5,
["method"]=1,
["skill_type"]=0,
["skill_type"]=1,
["boardrange"]={
},
["battle_icon"]="5",
["effect_type"]=1,
["trigger"]=1,

View File

@ -53,8 +53,12 @@ function HeroCell:refresh(heroEntity, isGray)
self.unlockTx:setVisible(false)
else
self.lvTx:setVisible(false)
self.progressBg:setVisible(false)
if canLvUp then
self.unlockTx:setVisible(false)
self.progressBg:setVisible(true)
else
self.unlockTx:setVisible(true)
self.progressBg:setVisible(false)
local unlcokChapter = heroEntity:getUnlcokChapter()
if unlcokChapter then
self.unlockTx:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_10, unlcokChapter))
@ -62,6 +66,7 @@ function HeroCell:refresh(heroEntity, isGray)
self.unlockTx:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_11))
end
end
end
end
function HeroCell:refreshWithCfgId(id, isGray)