属性修改提交
parent
f76005afb7
commit
8e1d427e2a
|
@ -773,7 +773,6 @@ function this.GetTreasureLevel()
|
|||
local moraleLv1 = 0
|
||||
local itemCount = BagManager.GetItemCountById(this.scoreValueId)
|
||||
for k,v in ConfigPairs(endlessTreasure) do
|
||||
LogGreen("itemCount:"..itemCount.." v.Integral:"..tostring(v.Integral))
|
||||
if not v.Integral or #v.Integral < 1 or #v.Integral[1] < 2 then
|
||||
moraleLv1 = v.Level
|
||||
id = v.Id
|
||||
|
|
|
@ -145,7 +145,8 @@ function EndLessMapView:BindEvent()
|
|||
end
|
||||
local u = function(id,isAppend,pros)
|
||||
for i = (isAppend and id or 1), id do
|
||||
local pro = endlessMorale[i].Props
|
||||
LogGreen("i:"..i)
|
||||
local pro = endlessMorale[i].Props or {}
|
||||
for k,v in ipairs(pro) do
|
||||
if not pros[v[1]] then
|
||||
pros[v[1]] = 0
|
||||
|
@ -167,11 +168,13 @@ function EndLessMapView:BindEvent()
|
|||
table.insert(pro,string.format("本级加成:全体神将<color=#55c688>%s</color>",str))
|
||||
end
|
||||
id = id + 1
|
||||
local pros = u(id,true,pros)
|
||||
local str = s(pros)
|
||||
if str and str ~= "" then
|
||||
table.insert(pro,string.format("下级加成:全体神将<color=#55c688>%s</color>",str))
|
||||
end
|
||||
if endlessMorale[id] then
|
||||
local pros = u(id,true,pros)
|
||||
local str = s(pros)
|
||||
if str and str ~= "" then
|
||||
table.insert(pro,string.format("下级加成:全体神将<color=#55c688>%s</color>",str))
|
||||
end
|
||||
end
|
||||
else --特殊加成
|
||||
for k,v in ConfigPairs(endlessMorale) do
|
||||
if v.Skill and v.Skill > 0 then
|
||||
|
|
Loading…
Reference in New Issue