572
edits
(Modifiers) |
No edit summary |
||
Line 474: | Line 474: | ||
return modifiers | return modifiers | ||
end | |||
-- Gets the modifiers for the specified entity | |||
function p.GetModifiers(name, type) | |||
if type == 'building' then | |||
return p._GetBuildingModifiers(p._GetBuildingByName(name)) | |||
end | |||
if type == 'resource' then | |||
return p._GetResourceModifiers(name) | |||
end | |||
if type == 'stat' then | |||
return p._GetStatModifiers(name) | |||
end | |||
if type == 'biome' then | |||
return p._GetBiomeModifiers(name) | |||
end | |||
end | end | ||
edits