【鸿蒙阵bug修改】
parent
b42a1c8e61
commit
fe6b09c8a6
|
|
@ -622,4 +622,5 @@ function this.WarPowerChangeNotify(did)
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
return HarmonyManager
|
||||
|
|
@ -123,6 +123,7 @@ function HongMengEnvoyPanel:BindEvent()
|
|||
if GrowthAmulet >= data.LevelUp[2][2] then
|
||||
--print("升级成功")
|
||||
-- body
|
||||
HarmonyManager.SetOldPowerNum()
|
||||
NetManager.UpHongMengGrade(
|
||||
function()
|
||||
-- body
|
||||
|
|
@ -159,6 +160,8 @@ function HongMengEnvoyPanel:BindEvent()
|
|||
end
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.UpdateGongMingLv)
|
||||
CheckRedPointStatus(RedPointType.HongMeng_UpTower)
|
||||
|
||||
HarmonyManager.WarPowerChangeNotify()
|
||||
end
|
||||
)
|
||||
else
|
||||
|
|
|
|||
|
|
@ -3,37 +3,38 @@ local jewelConfig = ConfigManager.GetConfig(ConfigName.JewelConfig)
|
|||
local EquipTreasureData = GSetClass("EquipTreasureData")
|
||||
EquipTreasureData.onCreate = function(self,_singleData)
|
||||
self._lv = _singleData.lv
|
||||
|
||||
end
|
||||
--等级
|
||||
EquipTreasureData.__get__.lv = function(self)
|
||||
-- print(this._lv, " - 属性访问器:get lv")
|
||||
if self.Location == 1 then
|
||||
--print(self.Location .. " ---- Location")
|
||||
if self.equipType == 1 then
|
||||
-- body
|
||||
local temp_lv = HarmonyManager.GetSingleAdditions(HarmonyAddType.HunSoulPrint)
|
||||
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
|
||||
local curlvEen = jewelConfig[self.id].Max[1]
|
||||
local endLv = temp_lv > curlvEen and curlvEen or temp_lv
|
||||
-- LogPink(" curlvEen "..endLv)
|
||||
--LogPink(" curlvEen "..endLv)
|
||||
|
||||
return endLv
|
||||
else
|
||||
-- LogPink(" curlvEen "..self._lv)
|
||||
--LogPink(" curlvEen "..self._lv)
|
||||
return self._lv
|
||||
end
|
||||
else
|
||||
|
||||
elseif self.equipType == 2 then
|
||||
local temp_lv = HarmonyManager.GetSingleAdditions(HarmonyAddType.LingSoulPrint)
|
||||
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
|
||||
local curlvEen = jewelConfig[self.id].Max[1]
|
||||
-- LogGreen("curlvEen "..curlvEen.." temp_lv "..temp_lv)
|
||||
local endLv = temp_lv > curlvEen and curlvEen or temp_lv
|
||||
-- LogPink(" curlvEen "..endLv)
|
||||
-- LogPink(" curlvEen "..endLv)
|
||||
return endLv
|
||||
else
|
||||
-- LogPink(" curlvEen "..self._lv)
|
||||
--LogPink(" curlvEen "..self._lv)
|
||||
return self._lv
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ function this.InitSingleTreasureData(_singleData)
|
|||
|
||||
local staticId = _singleData.equipId
|
||||
local currJewel = jewelConfig[staticId]
|
||||
single.equipType = currJewel.Location
|
||||
single.id = staticId
|
||||
single.idDyn = _singleData.id
|
||||
single.lv = _singleData.exp
|
||||
|
|
@ -42,7 +43,6 @@ function this.InitSingleTreasureData(_singleData)
|
|||
single.levelPool = currJewel.LevelupPool
|
||||
single.proIcon = GetProStrImageByProNum(currJewel.Race)
|
||||
single.refinePool = currJewel.RankupPool
|
||||
single.equipType = currJewel.Location
|
||||
if currJewel.Location == 1 then
|
||||
single.type = Language[10505]
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue