blob: 1c6cef6658c23e71e079b1771420c0a2d6aa33d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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;
|