【鸿蒙阵bug修改】
parent
04517981cd
commit
6617d818c0
|
@ -401,23 +401,32 @@ function this.GetEquipRewardList(equiplist)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.GetMinEquipStar(equiplist)
|
function this.GetMinEquipStar(equiplist)
|
||||||
-- body
|
-- body ,equipConfig[equiplist[i]],equipConfig[equiplist[i]].Star
|
||||||
if #equiplist == 0 then
|
if #equiplist == 0 then
|
||||||
-- body
|
-- body
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
local _list = {}
|
local _list = {}
|
||||||
|
|
||||||
|
--print(#equiplist," 1111 @@@@@@@@@")
|
||||||
for i = 1, #equiplist do
|
for i = 1, #equiplist do
|
||||||
-- body
|
-- body
|
||||||
_list[i] = equipConfig[equiplist[i]]
|
table.insert(_list,equipConfig[tonumber(equiplist[i])])
|
||||||
|
|
||||||
|
--print("执行程序s",equiplist[i],equipConfig[ tonumber(equiplist[i])].Name,equipConfig)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- print(#_list," 1.5 @@@@@@@@@")
|
||||||
|
-- print(LengthOfTable(_list)," 2222 @@@@@@@@@")
|
||||||
local _minStar = 999
|
local _minStar = 999
|
||||||
|
|
||||||
for i = 1, #_list do
|
for i = 1, #_list do
|
||||||
-- body
|
-- body
|
||||||
if _minStar > _list[i].Star then
|
if _minStar > _list[i].Star then
|
||||||
-- body
|
-- body
|
||||||
_minStar = _list[i].Star
|
_minStar = _list[i].Star
|
||||||
end
|
end
|
||||||
|
--print(_list[i].Star," !!!!!!!!!!")
|
||||||
end
|
end
|
||||||
return _minStar
|
return _minStar
|
||||||
end
|
end
|
||||||
|
|
|
@ -141,8 +141,12 @@ function HongMengUnLoadPanel:SetTextTwo(go,data)
|
||||||
end
|
end
|
||||||
function HongMengUnLoadPanel:SetText(go,_data)
|
function HongMengUnLoadPanel:SetText(go,_data)
|
||||||
|
|
||||||
|
-- local dataRock = EquipTreasureManager.GetSingleTreasureByIdDyn(herodata.jewels[2])
|
||||||
|
-- local HunSoul = 0
|
||||||
|
-- if dataRock.type == "魂宝" then
|
||||||
|
|
||||||
|
-- else
|
||||||
|
-- end
|
||||||
for i = 1, #dataAdditon do
|
for i = 1, #dataAdditon do
|
||||||
if dataAdditon[i].additionType == 1 then
|
if dataAdditon[i].additionType == 1 then
|
||||||
if HarmonyManager.hongmengTablet>=HarmonyManager.TowerStartLimit then
|
if HarmonyManager.hongmengTablet>=HarmonyManager.TowerStartLimit then
|
||||||
|
|
|
@ -67,6 +67,8 @@ local mainDynamicActivityIcon = {
|
||||||
[15] = "r_zjm_huodongicon-suoxiangpimi", ----所向披靡
|
[15] = "r_zjm_huodongicon-suoxiangpimi", ----所向披靡
|
||||||
[16] = "r_zjm_huodongicon-xialuxiangfeng", ----狭路相逢
|
[16] = "r_zjm_huodongicon-xialuxiangfeng", ----狭路相逢
|
||||||
[17] = "r_zjm_huodongicon-tongqiangtiebi", ----铜墙铁壁
|
[17] = "r_zjm_huodongicon-tongqiangtiebi", ----铜墙铁壁
|
||||||
|
[18] = "r_zjm_huodongicon-tongqiangtiebi",
|
||||||
|
[19] = "r_zjm_huodongicon-tongqiangtiebi",
|
||||||
}
|
}
|
||||||
function this:AddFuncItem(btnGO, pos)
|
function this:AddFuncItem(btnGO, pos)
|
||||||
return {go = btnGO, open = Util.GetGameObject(btnGO, "open"), lock = Util.GetGameObject(btnGO, "lock"), pos = pos}
|
return {go = btnGO, open = Util.GetGameObject(btnGO, "open"), lock = Util.GetGameObject(btnGO, "lock"), pos = pos}
|
||||||
|
@ -1489,6 +1491,7 @@ function this.TimeFormat()
|
||||||
if dynamicAct then
|
if dynamicAct then
|
||||||
if isRefeshIcon then
|
if isRefeshIcon then
|
||||||
local curindex = GlobalActConfig[dynamicAct].ShowArt
|
local curindex = GlobalActConfig[dynamicAct].ShowArt
|
||||||
|
print(curindex," ",mainDynamicActivityIcon[curindex])
|
||||||
Util.GetGameObject(this.btnDynamicActivity,"Image"):GetComponent("Image").sprite = Util.LoadSprite(mainDynamicActivityIcon[curindex])
|
Util.GetGameObject(this.btnDynamicActivity,"Image"):GetComponent("Image").sprite = Util.LoadSprite(mainDynamicActivityIcon[curindex])
|
||||||
isRefeshIcon = false
|
isRefeshIcon = false
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,7 +13,7 @@ EquipTreasureData.__get__.lv = function(self)
|
||||||
local temp_lv = HarmonyManager.GetSingleAdditions(HarmonyAddType.HunSoulPrint)
|
local temp_lv = HarmonyManager.GetSingleAdditions(HarmonyAddType.HunSoulPrint)
|
||||||
local isMing = HarmonyManager.IsInfo(self.upHeroDid)
|
local isMing = HarmonyManager.IsInfo(self.upHeroDid)
|
||||||
--LogPink("self.upHeroDid "..self.upHeroDid.." "..tostring(isMing))
|
--LogPink("self.upHeroDid "..self.upHeroDid.." "..tostring(isMing))
|
||||||
if temp_lv > 0 and isMing then
|
if temp_lv > 0 and isMing and temp_lv > self._lv then
|
||||||
local curlvEen = jewelConfig[self.id].Max[1]
|
local curlvEen = jewelConfig[self.id].Max[1]
|
||||||
local endLv = temp_lv > curlvEen and curlvEen or temp_lv
|
local endLv = temp_lv > curlvEen and curlvEen or temp_lv
|
||||||
--LogPink(" curlvEen "..endLv)
|
--LogPink(" curlvEen "..endLv)
|
||||||
|
@ -27,7 +27,7 @@ EquipTreasureData.__get__.lv = function(self)
|
||||||
local temp_lv = HarmonyManager.GetSingleAdditions(HarmonyAddType.LingSoulPrint)
|
local temp_lv = HarmonyManager.GetSingleAdditions(HarmonyAddType.LingSoulPrint)
|
||||||
local isMing = HarmonyManager.IsInfo(self.upHeroDid)
|
local isMing = HarmonyManager.IsInfo(self.upHeroDid)
|
||||||
--LogPink("self.upHeroDid "..self.upHeroDid.." "..tostring(isMing))
|
--LogPink("self.upHeroDid "..self.upHeroDid.." "..tostring(isMing))
|
||||||
if temp_lv > 0 and isMing then
|
if temp_lv > 0 and isMing and temp_lv > self._lv then
|
||||||
local curlvEen = jewelConfig[self.id].Max[1]
|
local curlvEen = jewelConfig[self.id].Max[1]
|
||||||
-- LogGreen("curlvEen "..curlvEen.." temp_lv "..temp_lv)
|
-- LogGreen("curlvEen "..curlvEen.." temp_lv "..temp_lv)
|
||||||
local endLv = temp_lv > curlvEen and curlvEen or temp_lv
|
local endLv = temp_lv > curlvEen and curlvEen or temp_lv
|
||||||
|
|
Loading…
Reference in New Issue