aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/skyblock/zones.js
blob: fb79441f9b8cd7ecb82c76362c9e25c7a85fe345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cleanVisitedZones = void 0;
function cleanVisitedZones(data) {
    const rawZones = (data === null || data === void 0 ? void 0 : 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;
}
exports.cleanVisitedZones = cleanVisitedZones;