Модуль:GameModes/getter
local p = {} local data = require('Module:GameModes/data') local type = require('Module:GameModes/types')
function p.name(gm)
return data[gm].name or gm
end
function p.medals(gm)
return data[gm].medals
end
function p.type(gm) return type[data[gm].type] end
function p.points_icon(gm) return data[gm].points_icon end
function p.rewards(gm) return data[gm].rewards end
return p