diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-14 12:03:01 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-14 12:03:01 -0600 |
commit | a12f0eaf3349160282bdc9f48cf9f253a154e500 (patch) | |
tree | 4d4ca3578c99ae802df0821bf8c0903799b59a9e /build/cleaners/skyblock/zones.js | |
parent | d3c4b954545eae9869f6347e1b6edc580210bfcd (diff) | |
download | skyblock-api-a12f0eaf3349160282bdc9f48cf9f253a154e500.tar.gz skyblock-api-a12f0eaf3349160282bdc9f48cf9f253a154e500.tar.bz2 skyblock-api-a12f0eaf3349160282bdc9f48cf9f253a154e500.zip |
add visited zones
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; |