572
edits
No edit summary |
No edit summary |
||
Line 494: | Line 494: | ||
end | end | ||
if type == 'stat' then | if type == 'stat' then | ||
for key, | for key, stat in pairs(p.stats) do | ||
if | 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 | ||
local biome = GameData.GetEntityByName(Township.biomes, name) | |||
return p._GetBiomeModifiers(biome.id) | |||
end | end | ||
end | end |
edits