Module:Sandbox/GauTest/Township: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 494: Line 494:
end
end
if type == 'stat' then
if type == 'stat' then
for key, value in pairs(p.stats) do
for key, stat in pairs(p.stats) do
if _table[key].name == name then
if stat.name == name then
return p._GetStatModifiers(key)
return p._GetStatModifiers(key)
end
end
Line 501: Line 501:
end
end
if type == 'biome' then
if type == 'biome' then
return p._GetBiomeModifiers(GameData.GetEntityByName(Township.biomes, name).id)
local biome = GameData.GetEntityByName(Township.biomes, name)
return p._GetBiomeModifiers(biome.id)
end
end
end
end
572

edits