Editing Module:Neighbor Journey
Appearance
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 77: | Line 77: | ||
local output = { | local output = { | ||
"{| class=\"wikitable wikitable--stripe\"", | "{| class=\"wikitable wikitable--stripe\"", | ||
"! | "! Node !! Quantity !! Title !! {{Item|Dough|notext=1}}" | ||
} | } | ||
| Line 96: | Line 96: | ||
-- Groups | -- Groups | ||
---------------------------------------------------------------- | ---------------------------------------------------------------- | ||
for _, group in ipairs(validGroups) do | for _, group in ipairs(validGroups) do | ||
| Line 106: | Line 104: | ||
-- Don't output groups that have no rewards. | -- Don't output groups that have no rewards. | ||
if #rewards > 0 then | if #rewards > 0 then | ||
-- Replace {name} with the neighbor's name. | -- Replace {name} with the neighbor's name. | ||
| Line 138: | Line 128: | ||
table.insert(output, | table.insert(output, | ||
"| " .. first.quantity .. | "| " .. first.quantity .. | ||
" || '''" .. first.title .. "''' || " .. | " || '''" .. first.title .. "''' " .. | ||
"|| " .. first.dough | |||
) | ) | ||
| Line 149: | Line 139: | ||
table.insert(output, | table.insert(output, | ||
"| " .. reward.quantity .. | "| " .. reward.quantity .. | ||
" || '''" .. reward.title .. "''' || " .. | " || '''" .. reward.title .. "''' " .. | ||
"|| " .. reward.dough | |||
) | ) | ||
end | end | ||
| Line 159: | Line 149: | ||
table.insert(output, "|}") | table.insert(output, "|}") | ||
return table.concat(output, "\n") | |||
end | end | ||
return p | return p | ||