【命格】红点显示不正确
parent
6b2860c5f4
commit
5b796d8246
|
@ -280,13 +280,17 @@ function this.RedPointCheck()
|
||||||
for i = 1, 8 do
|
for i = 1, 8 do
|
||||||
local data = this.GetGemsFromBagByType(i)
|
local data = this.GetGemsFromBagByType(i)
|
||||||
if this.myGemList[i] then--如果有数据
|
if this.myGemList[i] then--如果有数据
|
||||||
|
-- LogYellow("i:"..tostring(i))
|
||||||
for j = 1, #this.myGemList[i] do
|
for j = 1, #this.myGemList[i] do
|
||||||
|
-- LogYellow("j:"..tostring(j))
|
||||||
if this.myGemList[i][j] and this.myGemList[i][j] > 0 then--如果有数据切大于零
|
if this.myGemList[i][j] and this.myGemList[i][j] > 0 then--如果有数据切大于零
|
||||||
|
-- LogYellow("myGemList[i][j]:"..tostring(this.myGemList[i][j]))
|
||||||
for key, value in pairs(data) do
|
for key, value in pairs(data) do
|
||||||
local numInBag = BagManager.GetTotalItemNum(this.myGemList[i][j])
|
local numInBag = BagManager.GetTotalItemNum(this.myGemList[i][j])
|
||||||
|
-- LogYellow(value.id.." "..this.myGemList[i][j].." "..(numInBag + 1).." "..gemConfig[this.myGemList[i][j]].UpgradeNum)
|
||||||
if value.id > this.myGemList[i][j] then
|
if value.id > this.myGemList[i][j] then
|
||||||
return true
|
return true
|
||||||
elseif numInBag + 1 > gemConfig[this.myGemList[i][j]].UpgradeNum and gemConfig[this.myGemList[i][j]].NextGem > 0 then
|
elseif numInBag + 1 >= gemConfig[this.myGemList[i][j]].UpgradeNum and gemConfig[this.myGemList[i][j]].NextGem > 0 then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue