Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Iterator
(view source)
Revision as of 03:23, 22 June 2020
126 bytes added
,
4 years ago
no edit summary
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
がか
cssedit, gkautomate
7,064
edits