Difference between revisions of "Module:Villagers"

Jump to navigation Jump to search
no edit summary
Tag: Manual revert
 
(6 intermediate revisions by the same user not shown)
Line 8: Line 8:
if args[1] then
if args[1] then
local rank = com.fUpper(args[1])
local rank = com.fUpper(args[1])
local workers = {}
local jobs = {}


for k, v in pairs(b) do
for k, v in pairs(b) do
if v.optimalRank == rank then
if v.rank == rank then
workers[k] = true
jobs[k] = true
end
end
end
end


table.sort(workers)
table.sort(jobs)
mw.log(#workers)
mw.log(#jobs)
local cols = {
local cols = {
['column-count'] = (args[2] or 3)
['column-count'] = (args[2] or 3)
424

edits

Navigation menu