Module:GauTest/Township: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 932: Line 932:
table.insert(ret, '\r\n{| class="wikitable" style="text-align:left"')
table.insert(ret, '\r\n{| class="wikitable" style="text-align:left"')
table.insert(ret, '\r\n!'..Icons.Icon({'Worship', type='township'}))
table.insert(ret, '\r\n!'..Icons.Icon({'Worship', type='township', nolink=true}))
-- Names
-- Names
for _, worship in ipairs(Township.worships) do
for _, worship in ipairs(Township.worships) do
if worship.isHidden == false then
if worship.isHidden == false then
table.insert(ret, '\r\n!'..Icons.Icon({'Statue of '..worship.name, type='building', notext=true})..Icons.Icon({worship.name, type='monster'}))
table.insert(ret, '\r\n!'..Icons.Icon({worship.name, type='monster', size=50})..Icons.Icon({'Statue of '..worship.name, type='building', size=50, notext=true}))
end
end
end
end
-- Requirements
-- Hard-coded because there's only 1 requirement
table.insert(ret, '\r\n|-\r\n!Requirements')
local requirements = {
['melvorF:Bane'] = 'Completion of<br>'..Icons.Icon({'Impending Darkness Event', type='dungeon'})
}
for _, worship in ipairs(Township.worships) do
if worship.isHidden == false then
local requirement = requirements[worship.id] ~= nil and requirements[worship.id] or 'None'
table.insert(ret, '\r\n|style="text-align:center|'..requirement)
end
end
-- Base modifiers
-- Base modifiers
table.insert(ret, GetCheckpointCell(0))
table.insert(ret, GetCheckpointCell(0))
Line 947: Line 961:
end
end
end
end
-- Checkpoint modifiers
-- Checkpoint modifiers
for i, checkpoint in ipairs(Township.worshipCheckpoints) do
for i, checkpoint in ipairs(Township.worshipCheckpoints) do
572

edits