Module:Sandbox/GauTest/Township: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 406: Line 406:
table.insert(ret, '\r\n|-\r\n| <b>Biomes:</b><br><ul>')
table.insert(ret, '\r\n|-\r\n| <b>Biomes:</b><br><ul>')
for _, biomeid in ipairs(building.biomes) do
for _, biomeid in ipairs(building.biomes) do
local biomename = GameData.getEntityByID(Township.biomes, biomeid)
local biomename = GameData.getEntityByID(Township.biomes, biomeid).name
-- Optional hidden bonus/penalty for building
-- Optional hidden bonus/penalty for building
local modifier = GameData.getEntityByProperty(building.biomeModifiers, 'biomeID', biome)
local modifier = GameData.getEntityByProperty(building.biomeModifiers, 'biomeID', biome)
572

edits