法宝心愿修改
parent
de3f2d011a
commit
e3f5c7de9d
|
@ -184,7 +184,7 @@ function this:ShowSingleHero(go,data,index)
|
||||||
self.maskList[self.curSelect][index]:SetActive(false)
|
self.maskList[self.curSelect][index]:SetActive(false)
|
||||||
Util.SetGray(self.itemList[self.curSelect][index],false)
|
Util.SetGray(self.itemList[self.curSelect][index],false)
|
||||||
|
|
||||||
local value = RecruitManager.CheckCurTalismanaState(data)
|
local value = RecruitManager.CheckCurTalismanaState(equipId)
|
||||||
if value == 0 then--上方存在相同阵营
|
if value == 0 then--上方存在相同阵营
|
||||||
Util.SetGray(self.itemList[self.curSelect][index],true)
|
Util.SetGray(self.itemList[self.curSelect][index],true)
|
||||||
Util.AddOnceClick(go,function ()
|
Util.AddOnceClick(go,function ()
|
||||||
|
@ -198,7 +198,7 @@ function this:ShowSingleHero(go,data,index)
|
||||||
elseif value == 1 then--上方存在自己
|
elseif value == 1 then--上方存在自己
|
||||||
self.maskList[self.curSelect][index]:SetActive(true)
|
self.maskList[self.curSelect][index]:SetActive(true)
|
||||||
Util.AddOnceClick(go,function ()
|
Util.AddOnceClick(go,function ()
|
||||||
RecruitManager.ChangeEquip(2,data,function ()
|
RecruitManager.ChangeEquip(2,equipId,function ()
|
||||||
this:Refresh(false,false)
|
this:Refresh(false,false)
|
||||||
end)--英雄变更:1增加、2卸下
|
end)--英雄变更:1增加、2卸下
|
||||||
end)
|
end)
|
||||||
|
@ -209,7 +209,7 @@ function this:ShowSingleHero(go,data,index)
|
||||||
end)
|
end)
|
||||||
elseif value == 3 then--可选
|
elseif value == 3 then--可选
|
||||||
Util.AddOnceClick(go,function ()
|
Util.AddOnceClick(go,function ()
|
||||||
RecruitManager.ChangeEquip(1,data,function ()
|
RecruitManager.ChangeEquip(1,equipId,function ()
|
||||||
this:Refresh(false,false)
|
this:Refresh(false,false)
|
||||||
end)--英雄变更:1增加、2卸下
|
end)--英雄变更:1增加、2卸下
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue