aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/skyblock/zones.js
blob: ef7015e7e2f5c35d9a4a92a09725fd288859950f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
export function cleanVisitedZones(data) {
    const rawZones = data?.visited_zones || [];
    // TODO: store all the zones that exist in SkyBlock, add add those to the array with visited being false
    const zones = [];
    for (const rawZoneName of rawZones) {
        zones.push({
            name: rawZoneName,
            visited: true
        });
    }
    return zones;
}