diff options
Diffstat (limited to 'build/cleaners/skyblock/zones.js')
-rw-r--r-- | build/cleaners/skyblock/zones.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/build/cleaners/skyblock/zones.js b/build/cleaners/skyblock/zones.js new file mode 100644 index 0000000..fb79441 --- /dev/null +++ b/build/cleaners/skyblock/zones.js @@ -0,0 +1,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; |