【命格】红点显示不正确

dev_chengFeng
ZhangBiao 2022-01-10 15:48:38 +08:00
parent 6b2860c5f4
commit 5b796d8246
1 changed files with 5 additions and 1 deletions

View File

@ -280,13 +280,17 @@ function this.RedPointCheck()
for i = 1, 8 do
local data = this.GetGemsFromBagByType(i)
if this.myGemList[i] then--如果有数据
-- LogYellow("i:"..tostring(i))
for j = 1, #this.myGemList[i] do
-- LogYellow("j:"..tostring(j))
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
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
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
end
end