[鸿蒙阵]=============================鸿蒙碑逻辑修改

TCX_dev_realOne_master hotfix/you_gu/cdn_realOne_ios/1.1.17
wangzhenxing 2023-12-26 19:11:36 +08:00
parent f961a7b87e
commit a6f88543f4
5 changed files with 18 additions and 8 deletions

View File

@ -106,8 +106,9 @@ function HarmonyPanel:OnOpen()
-- NetManager.PlayerInfoRequest(LoadingPanel.OnStep)
--格子
self.GradeText.text="鸿蒙阵等级:"..string.format("%d/%d", HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value, 330)
local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,101).Value
local t = string.split(specialConfig,"#")
self.GradeText.text="鸿蒙阵等级:"..string.format("%d/%d", HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value, t[2])
for i = 1, #contents do
contents[i].view:OnOpen(self.sortingOrder)
end

View File

@ -30,6 +30,7 @@ local keys = nil
function this.GetHongMengServerData(msg)
local data2 = ConfigManager.GetConfigData(ConfigName.SpecialConfig,101).Value
local d = string.split(data2,"#")
LogError("msg.hongmengTabletMax============"..msg.hongmengTabletMax)
if msg.hongmengTabletMax >= tonumber(d[2]) then
HarmonyManager:SetHongMengTowerUpLimit(msg.hongmengTabletMax)
end
@ -44,7 +45,7 @@ function this.GetHongMengServerData(msg)
-- end
HarmonyManager.UpdateHongMengDataGuards(msg.hongmengGuards)
end
-- LogError("服务器发来的hongmengAdditions长度"..tostring(#msg.hongmengAdditions))
LogError("服务器发来的hongmengAdditions长度"..tostring(#msg.hongmengAdditions))
if msg.hongmengAdditions then
for i = 1, #msg.hongmengAdditions do
-- body
@ -59,6 +60,7 @@ function this.GetHongMengServerData(msg)
for i = 1, #HarmonyManager.hongmengGuards do
if HarmonyManager.hongmengGuards[i].heroId ~= "" then
local _heroData = HeroManager.GetSingleHeroData(HarmonyManager.hongmengGuards[i].heroId)
LogError("_heroData.star=================".._heroData.star)
HeroManager.UpdateSingleHeroDatas(_heroData.dynamicId, 1, _heroData.star, 0, _heroData.upStarId)
end
end
@ -412,7 +414,7 @@ end
function this.GetHongMengUpData()
for i = 1, #this.hongmengAdditions do
if this.hongmengAdditions[i].additionType == 1 then
if this.hongmengAdditions[i].value < 330 then
if this.hongmengAdditions[i].value < 300 then
LogBlue("服务器数据为"..this.hongmengAdditions[i].value)
return nil
end

View File

@ -80,7 +80,7 @@ function GongMingResultTips:OnOpen(flag)
if flag then
else
if HarmonyManager:HongMengTowerUpLimit()>=330 then
if HarmonyManager:HongMengTowerUpLimit()>=300 then
-- body
this.textTitle.text = Language[12193]
else

View File

@ -37,7 +37,7 @@ HeroData.__get__.lv = function(self)
return endLv
elseif HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv) and HarmonyManager:IsEnvoy(self.dynamicId) then
local data = HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv)
if data.heroTid >= 0 and data.value >= 330 then
if data.heroTid >= 0 and data.value >= 300 then
local temp_lv = 0
if HeroManager.IsTenTalent(self._id) then
temp_lv = data.value
@ -125,6 +125,7 @@ HeroData.__set__.breakId = function (self,value)
--print("self._breakId",self._breakId)
end
HeroData.__get__.breakId = function (self)
-- body
local temp_lv = HarmonyManager.GetSingleAdditions(HarmonyAddType.AddLv)
@ -146,7 +147,7 @@ HeroData.__get__.breakId = function (self)
elseif HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv) and HarmonyManager:IsEnvoy(self.dynamicId) then
local data = HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv)
--print("self._id @@@"..HarmonyManager.hongmengAdditions[1].heroTid.."#####"..HarmonyManager.hongmengAdditions[1].value )
if data.heroTid >= 0 and data.value >= 330 then
if data.heroTid >= 0 and data.value >= 300 then
local temp_lv = 0
if HeroManager.IsTenTalent(self._id) then
temp_lv = data.value

View File

@ -51,8 +51,14 @@ function PlayerTitle:SetShow(itemId, position, scale, effectScale, layer)
local curPlayerRole = ConfigManager.GetConfigData(ConfigName.PlayerRole,itemId)
local curArtResourcesConfig = ConfigManager.GetConfigData(ConfigName.ArtResourcesConfig,curPlayerRole.LiveAnimName)
self.curTitleName = curArtResourcesConfig.Name
self.titleLive = poolManager:LoadAsset(self.curTitleName, PoolManager.AssetType.GameObject)
self.titleLive.transform:SetParent(self.transform)
if self.titleLive==nil then
LogError("self.curTitleName====================="..self.curTitleName)
else
self.titleLive.transform:SetParent(self.transform)
end
if effectScale then
self:SetEffectScale(effectScale)
end