Module:Sandbox/GauTest/Township: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 2: Line 2:
local Icons = require('Module:Icons')
local Icons = require('Module:Icons')
local GameData = require('Module:GameData')
local GameData = require('Module:GameData')
local GameData = require('Module:Constants')




Line 370: Line 371:
if #benefits > 0 then
if #benefits > 0 then
table.insert(ret, '\r\n|-\r\n| <b>Provides:</b> '..table.concat(benefits, ', '))
table.insert(ret, '\r\n|-\r\n| <b>Provides:</b> '..table.concat(benefits, ', '))
end
-- Modifiers
if building.modifiers ~= nil and not Shared.tableIsEmpty(building.modifiers) then
table.insert(ret, "\r\n|-\r\n| <b>Modifiers:</b>\r\n"..Constants.getModifiersText(building.modifiers, true))
end
end
Line 398: Line 404:
p.Icons = Icons
p.Icons = Icons
p.Township = Township
p.Township = Township
function p.Test()
for _, building in ipairs(Township.buildings) do
if building.modifiers ~= nil then
mw.log(building.name)
mw.logObject(building.modifiers)
end
end
end


return p
return p
572

edits