【鸿蒙阵需求修改】

dev_chengFeng
guowei 2021-01-04 16:31:46 +08:00
parent cc337cbcb3
commit 6fe2339153
3 changed files with 17 additions and 4 deletions

View File

@ -103,8 +103,13 @@ function EnvoyItem:SetItem(go,data)
self.Empty:SetActive(false)
self.RedPoint:SetActive(false)
Util.GetGameObject(go.transform, "GameObject/frame"):GetComponent("Image").sprite = Util.LoadSprite(GetHeroQuantityImageByquality(heroSingleData.heroConfig.Quality,heroSingleData.star))
if heroSingleData.lv == HarmonyManager.hongmengAdditions[1].value then
-- body
Util.GetGameObject(go.transform, "GameObject/lv/Text"):GetComponent("Text").text = string.format("<color=#0f0>%d</color>",heroSingleData.lv)
else
Util.GetGameObject(go.transform, "GameObject/lv/Text"):GetComponent("Text").text = string.format("<color=red>%d</color>",heroSingleData.lv)
end
--Util.GetGameObject(go.transform, "GameObject/lv/Text"):GetComponent("Text").text = string.format("<color=#0f0>%d</color>",HarmonyManager.hongmengAdditions[1].value)

View File

@ -36,7 +36,15 @@ HeroData.__get__.lv = function(self)
elseif HarmonyManager.hongmengAdditions[1] and HarmonyManager:IsEnvoy(self.dynamicId) then
if HarmonyManager.hongmengAdditions[1].heroTid == 0 then
-- body
return HarmonyManager.hongmengAdditions[1].value
local temp_lv = 0
if HeroManager.IsTenTalent(self._id) then
-- body
temp_lv = HarmonyManager.hongmengAdditions[1].value
else
temp_lv = HeroManager.heroLvEnd[self.id]
end
return temp_lv
else
return self._lv
end

View File

@ -3416,7 +3416,7 @@ end
function this.IsTenTalent(v)
-- body
--print(v," ")--,heroConfig[v].MaxRank)
if heroConfig[v].MaxRank == this.awakeNextStarIndex then
if heroConfig[v].MaxRank == this.awakeNextStarIndex or heroConfig[v].MaxRank == this.awakeStarIndex then
return true
else
return false