return function(L,p)L=L or{}local A={}for L,p in pairs(L)do A[L]=p end if p.type=="\065\067\072\073\069\086\069\077\069\078\084\095\071\069\084"then A[p.achievementId]=true end return A end
return (function(state,action)
    state = state or {}
    local newState = {}

    for id,achievement in pairs(state) do
        newState[id] = achievement
    end

    if action.type == "ACHIEVEMENT_GET" then
        newState[action.achievementId] = true
    end

    return newState
end)