Line 115:
Line 115:
local current = nil
local current = nil
local preFlag = true
local preFlag = true
−
local nCollection = #collection
+
local nCollection = nItems == true and #collection or nItems or #collection
return {
return {
next = function()
next = function()
Line 188:
Line 188:
local to = numberKey('to', context, n, 500)
local to = numberKey('to', context, n, 500)
local prevMod = 0
local prevMod = 0
+
local nItems = (math.floor(U.ilast(CollectionEquipment)._id / 10) + 1) * 10
return Iterator.equipmentBy(
return Iterator.equipmentBy(
context, n,
context, n,
Line 204:
Line 205:
end
end
end,
end,
−
true
+
nItems
)
)
end
end