装备红点提交
parent
78c982e740
commit
12c8efa516
|
@ -152,10 +152,11 @@ end
|
|||
--获取单个英雄装备数据
|
||||
function this.GetSingleHeroSingleEquipData(_equipid, _heroDid)
|
||||
_equipid = tonumber(_equipid)
|
||||
if this.equipDatas[_equipid] and this.equipDatas[_equipid].upHeroDidList and this.equipDatas[_equipid].upHeroDidList[_heroDid] then
|
||||
return this.equipDatas[_equipid]
|
||||
elseif HarmonyManager.GetSingleAdditions(HarmonyAddType.AddEquip) > 0 and HarmonyManager.IsInfo(_heroDid) then
|
||||
if HarmonyManager.GetSingleAdditions(HarmonyAddType.AddEquip) > 0 and HarmonyManager.IsInfo(_heroDid) then
|
||||
LogGreen("正在共鸣中")
|
||||
return HarmonyManager.equipDatas[_equipid]--.upHeroDidList[_heroDid]
|
||||
elseif this.equipDatas[_equipid] and this.equipDatas[_equipid].upHeroDidList and this.equipDatas[_equipid].upHeroDidList[_heroDid] then
|
||||
return this.equipDatas[_equipid]
|
||||
else
|
||||
return nil
|
||||
end
|
||||
|
|
|
@ -3074,11 +3074,11 @@ function this.GetHeroIsUpEquip(heroDid)
|
|||
equipIdAndWarPower.warPower = 0
|
||||
lackEquips[i] = equipIdAndWarPower
|
||||
end
|
||||
|
||||
-- 有装备的位置赋值装备id及战力
|
||||
if heroData.equipIdList and #heroData.equipIdList > 1 then
|
||||
if heroData.equipIdList and #heroData.equipIdList > 0 then
|
||||
for i = 1, #heroData.equipIdList do
|
||||
if not heroData.equipIdList[i] then
|
||||
|
||||
else
|
||||
local curEquipConFigData =
|
||||
EquipManager.GetSingleHeroSingleEquipData(heroData.equipIdList[i], heroDid)
|
||||
|
@ -3093,13 +3093,13 @@ function this.GetHeroIsUpEquip(heroDid)
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
--有同系 且未在英雄身上的装备
|
||||
local equips = BagManager.GetEquipDataByEquipPosition(heroData.heroConfig.Profession)
|
||||
|
||||
for _, v in ipairs(equips) do
|
||||
if EquipManager.GetSingleHeroSingleEquipData(v.id, heroDid) then
|
||||
--英雄已经装备了这个装备
|
||||
LogGreen("英雄已经装备了这个装备v.id:"..v.id)
|
||||
else
|
||||
local equipConfigData = equipConfig[v.id]
|
||||
local pos = equipConfigData.Position
|
||||
|
|
Loading…
Reference in New Issue