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

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

    if action.type == "ASSET_GIVE" then
        newState[action.assetId] = true
    end

    return newState
end