【鸿蒙阵修改】
parent
3ded7b31fc
commit
c252f1bae6
|
@ -8,6 +8,7 @@ HeroData.onCreate = function(self,_msgHeroData, isFindHandBook)
|
|||
self._equipIdList = _msgHeroData.equipIdList
|
||||
self._talismanList = self.especialEquipLevel
|
||||
self._star = _msgHeroData.star
|
||||
self._breakId = _msgHeroData.breakId
|
||||
-- self._breakId = _msgHeroData.
|
||||
end
|
||||
--等级
|
||||
|
@ -117,4 +118,55 @@ HeroData.__get__.oriLv= function (self)
|
|||
-- body
|
||||
return self._lv
|
||||
end
|
||||
--天赋突破变化
|
||||
HeroData.__set__.breakId = function (self,value)
|
||||
-- body
|
||||
self._breakId = value
|
||||
end
|
||||
|
||||
HeroData.__get__.breakId = function (self)
|
||||
-- body
|
||||
local temp_lv = HarmonyManager.GetSingleAdditions(HarmonyAddType.AddLv)
|
||||
local endLv = 0
|
||||
local endbreakIdLv = 0
|
||||
if temp_lv > 0 and HarmonyManager.IsInfo(self.dynamicId) then
|
||||
|
||||
--LogGreen(tostring(HeroManager.IsElevenStar(self.star)))
|
||||
--print(self._id.." "..HarmonyManager.hongmengAdditions[1].heroTid..self.heroConfig.ReadingName)
|
||||
if HeroManager.IsTenTalent(self._id) and HarmonyManager.hongmengAdditions[1].heroTid == 0 then
|
||||
-- bodys
|
||||
|
||||
endLv = HarmonyManager.hongmengAdditions[1].value
|
||||
--print(endLv," "..self.heroConfig.ReadingName)
|
||||
else
|
||||
local curlvEen = HeroManager.heroLvEnd[self.id]
|
||||
--
|
||||
endLv = temp_lv > curlvEen and curlvEen or temp_lv
|
||||
end
|
||||
endbreakIdLv = HeroManager.GetAllStarBreakIdData(self._id,endLv)
|
||||
|
||||
return endbreakIdLv
|
||||
elseif HarmonyManager.hongmengAdditions[1] and HarmonyManager:IsEnvoy(self.dynamicId) then
|
||||
--print("self._id @@@"..HarmonyManager.hongmengAdditions[1].heroTid.."#####"..HarmonyManager.hongmengAdditions[1].value )
|
||||
if HarmonyManager.hongmengAdditions[1].heroTid >= 0 and HarmonyManager.hongmengAdditions[1].value >= 330 then
|
||||
-- body
|
||||
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
|
||||
endbreakIdLv = HeroManager.GetAllStarBreakIdData(self._id,endLv)
|
||||
--print("self._id 222"..self._id)
|
||||
return endbreakIdLv
|
||||
else
|
||||
return self._breakId
|
||||
end
|
||||
|
||||
else
|
||||
return self._breakId
|
||||
end
|
||||
end
|
||||
|
||||
return HeroData
|
|
@ -45,6 +45,11 @@ this.heroResolveLicence = {}
|
|||
|
||||
this.awakeStarIndex = 10-- 前端写死觉醒星级标志
|
||||
this.awakeNextStarIndex = 11-- 前端写死觉醒星级标志
|
||||
--存储英雄身上对应的星级
|
||||
local curAllStarBreakIdData = {
|
||||
-- [1] = {[40]= 24},
|
||||
-- [2] = {[40]= 22,[50]= 23}
|
||||
}
|
||||
function this.Initialize()
|
||||
for i = 1, WarPowerTypeAllNum do
|
||||
this.allProVal[i] = {
|
||||
|
@ -58,6 +63,7 @@ function this.Initialize()
|
|||
--减乘
|
||||
}
|
||||
end
|
||||
this.SetAllStarBreakIdData()
|
||||
end
|
||||
--初始化英雄数据
|
||||
function this.InitHeroData(_msgHeroList)
|
||||
|
@ -3447,5 +3453,26 @@ function this.GetCurHeroEquipSuitPros(equipIdList)
|
|||
return equipSuit
|
||||
end
|
||||
|
||||
|
||||
function this.SetAllStarBreakIdData()
|
||||
for key, configInfo in ConfigPairs(ConfigManager.GetConfig(ConfigName.HeroRankupConfig)) do
|
||||
if configInfo.Type == 1 then
|
||||
if curAllStarBreakIdData[configInfo.Star] then
|
||||
curAllStarBreakIdData[configInfo.Star][configInfo.OpenLevel] = key
|
||||
else
|
||||
curAllStarBreakIdData[configInfo.Star] = {}
|
||||
curAllStarBreakIdData[configInfo.Star][configInfo.OpenLevel] = key
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
function this.GetAllStarBreakIdData(sid,lv)
|
||||
local curHeroConFig = heroConfig[sid]
|
||||
local endBreakId = 0
|
||||
for key, value in pairs(curAllStarBreakIdData[curHeroConFig.Star]) do
|
||||
if lv >= key and endBreakId < value then
|
||||
endBreakId = value
|
||||
end
|
||||
end
|
||||
return endBreakId
|
||||
end
|
||||
return this
|
|
@ -892,6 +892,7 @@ function this:BindEvent()
|
|||
Util.AddClick(this.btnHongMeng,function()
|
||||
NetManager.HongMengInfoResponse(function ()
|
||||
-- body
|
||||
print("鸿蒙等级"..HarmonyManager:HongMengTowerUpLimit())
|
||||
if HarmonyManager:HongMengTowerUpLimit() > 0 then
|
||||
-- body
|
||||
UIManager.OpenPanel(UIName.HongMengEnvoyPanel)
|
||||
|
|
|
@ -156,6 +156,7 @@ function this.HongMengIndication(buffer)
|
|||
end
|
||||
if msg.hongmengTabletMax ~= 0 then
|
||||
-- body
|
||||
print("鸿蒙碑开启!!!!!!!!!"..msg.hongmengTabletMax)
|
||||
HarmonyManager:SetHongMengTowerUpLimit(msg.hongmengTabletMax)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -174,7 +174,13 @@ function this:UpdateHeroInfoData()
|
|||
curLvEnd = heroRankupConfig[curHeroData.upStarId].OpenLevel
|
||||
end
|
||||
end
|
||||
this.lv.text= curHeroData.lv.."/"..curLvEnd
|
||||
if HarmonyManager.IsChangeColor(curHeroData.dynamicId) then
|
||||
-- body
|
||||
this.lv.text= "<color=green>"..curHeroData.lv.."</color>"
|
||||
else
|
||||
this.lv.text= curHeroData.lv.."/"..curLvEnd
|
||||
end
|
||||
|
||||
--技能点击特殊处理
|
||||
this.selsectSkillImage:SetActive(false)
|
||||
this.UpdateHeroUpStarProUpSkillShow(this.skillGrid,curHeroData.skillIdList,curHeroData.passiveSkillList)
|
||||
|
@ -182,6 +188,7 @@ end
|
|||
function this:ProShow(go,allAddProVal,HeroProType,nextallAddProVal)
|
||||
local curProSConFig = ConfigManager.GetConfigData(ConfigName.PropertyConfig,HeroProType)
|
||||
Util.GetGameObject(go,"proName"):GetComponent("Text").text = curProSConFig.Info..":"
|
||||
|
||||
Util.GetGameObject(go,"proValue"):GetComponent("Text").text = allAddProVal[HeroProType]
|
||||
Util.GetGameObject(go,"Image"):GetComponent("Image").sprite = Util.LoadSprite(PropertyTypeIconDef[HeroProType])
|
||||
if nextallAddProVal then
|
||||
|
|
Loading…
Reference in New Issue