diff options
Diffstat (limited to 'build/cleaners/skyblock/fairysouls.js')
-rw-r--r-- | build/cleaners/skyblock/fairysouls.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build/cleaners/skyblock/fairysouls.js b/build/cleaners/skyblock/fairysouls.js new file mode 100644 index 0000000..1c6cef6 --- /dev/null +++ b/build/cleaners/skyblock/fairysouls.js @@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.cleanFairySouls = void 0; +function cleanFairySouls(data) { + var _a, _b, _c; + return { + total: (_a = data === null || data === void 0 ? void 0 : data.fairy_souls_collected) !== null && _a !== void 0 ? _a : 0, + unexchanged: (_b = data === null || data === void 0 ? void 0 : data.fairy_souls) !== null && _b !== void 0 ? _b : 0, + exchanges: (_c = data === null || data === void 0 ? void 0 : data.fairy_exchanges) !== null && _c !== void 0 ? _c : 0, + }; +} +exports.cleanFairySouls = cleanFairySouls; |