解锁逻辑
This commit is contained in:
parent
d47baeebc1
commit
71b9dd23a1
@ -231,7 +231,6 @@ local hero = {
|
|||||||
["model_id"]="p0011",
|
["model_id"]="p0011",
|
||||||
["icon"]="16",
|
["icon"]="16",
|
||||||
["item_id"]=14001,
|
["item_id"]=14001,
|
||||||
["unlock_chapter"]=25,
|
|
||||||
["is_show"]=1
|
["is_show"]=1
|
||||||
},
|
},
|
||||||
[22001]={
|
[22001]={
|
||||||
|
|||||||
@ -3730,7 +3730,10 @@ local skill = {
|
|||||||
["link"]=1,
|
["link"]=1,
|
||||||
["position"]=5,
|
["position"]=5,
|
||||||
["method"]=1,
|
["method"]=1,
|
||||||
["skill_type"]=0,
|
["skill_type"]=1,
|
||||||
|
["boardrange"]={
|
||||||
|
|
||||||
|
},
|
||||||
["battle_icon"]="5",
|
["battle_icon"]="5",
|
||||||
["effect_type"]=1,
|
["effect_type"]=1,
|
||||||
["trigger"]=1,
|
["trigger"]=1,
|
||||||
@ -3753,7 +3756,10 @@ local skill = {
|
|||||||
["link"]=1,
|
["link"]=1,
|
||||||
["position"]=5,
|
["position"]=5,
|
||||||
["method"]=1,
|
["method"]=1,
|
||||||
["skill_type"]=0,
|
["skill_type"]=1,
|
||||||
|
["boardrange"]={
|
||||||
|
|
||||||
|
},
|
||||||
["battle_icon"]="5",
|
["battle_icon"]="5",
|
||||||
["effect_type"]=1,
|
["effect_type"]=1,
|
||||||
["trigger"]=1,
|
["trigger"]=1,
|
||||||
@ -3776,7 +3782,10 @@ local skill = {
|
|||||||
["link"]=1,
|
["link"]=1,
|
||||||
["position"]=5,
|
["position"]=5,
|
||||||
["method"]=1,
|
["method"]=1,
|
||||||
["skill_type"]=0,
|
["skill_type"]=1,
|
||||||
|
["boardrange"]={
|
||||||
|
|
||||||
|
},
|
||||||
["battle_icon"]="5",
|
["battle_icon"]="5",
|
||||||
["effect_type"]=1,
|
["effect_type"]=1,
|
||||||
["trigger"]=1,
|
["trigger"]=1,
|
||||||
|
|||||||
@ -53,13 +53,18 @@ function HeroCell:refresh(heroEntity, isGray)
|
|||||||
self.unlockTx:setVisible(false)
|
self.unlockTx:setVisible(false)
|
||||||
else
|
else
|
||||||
self.lvTx:setVisible(false)
|
self.lvTx:setVisible(false)
|
||||||
self.progressBg:setVisible(false)
|
if canLvUp then
|
||||||
self.unlockTx:setVisible(true)
|
self.unlockTx:setVisible(false)
|
||||||
local unlcokChapter = heroEntity:getUnlcokChapter()
|
self.progressBg:setVisible(true)
|
||||||
if unlcokChapter then
|
|
||||||
self.unlockTx:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_10, unlcokChapter))
|
|
||||||
else
|
else
|
||||||
self.unlockTx:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_11))
|
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))
|
||||||
|
else
|
||||||
|
self.unlockTx:setText(I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_11))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user