符文随机假数据不展示当前等级最高两个品质

This commit is contained in:
Fang 2023-09-20 09:36:23 +08:00
parent 7a475edcfc
commit 218aa308e8

View File

@ -301,11 +301,12 @@ function RunesData:getRandomGrids()
if self.fakeGrids == nil then
self.fakeGrids = {}
local maxQlt = self:getCheckQualityIds()[1] - 1
for i = 1, GConst.RunesConst.FAKE_DATA_COUNT do
self.fakeGrids[i] = {}
for j = 1, GConst.RunesConst.MAX_ATTR_GRID_COUNT do
local grid = {}
grid.quality = math.random(GConst.RunesConst.MAX_QUALITY_COUNT - 2)
grid.quality = math.random(maxQlt)
grid.attr = math.random(GConst.RunesConst.MAX_ATTR_COUNT)
grid.suit = math.random(GConst.RunesConst.MAX_SUITS_COUNT)
table.insert(self.fakeGrids[i], grid)