@fnlb-project/fnbr 4.1.40 → 4.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/resources/BaseItemRating.json +0 -5203
- package/dist/resources/HomebaseRatingMapping.json +0 -255
- package/dist/resources/PowerLevelCurves.d.ts +0 -111
- package/dist/resources/PowerLevelCurves.js +0 -21
- package/dist/resources/PowerLevelCurves.js.map +0 -1
- package/dist/resources/SurvivorItemRating.json +0 -9343
- package/dist/src/managers/STWManager.d.ts +0 -29
- package/dist/src/managers/STWManager.js +0 -80
- package/dist/src/managers/STWManager.js.map +0 -1
- package/dist/src/managers/TournamentManager.d.ts +0 -51
- package/dist/src/managers/TournamentManager.js +0 -179
- package/dist/src/managers/TournamentManager.js.map +0 -1
- package/dist/src/stomp/EOSConnect.d.ts +0 -43
- package/dist/src/stomp/EOSConnect.js +0 -175
- package/dist/src/stomp/EOSConnect.js.map +0 -1
- package/dist/src/structures/EventTokens.d.ts +0 -32
- package/dist/src/structures/EventTokens.js +0 -45
- package/dist/src/structures/EventTokens.js.map +0 -1
- package/dist/src/structures/Tournament.d.ts +0 -86
- package/dist/src/structures/Tournament.js +0 -64
- package/dist/src/structures/Tournament.js.map +0 -1
- package/dist/src/structures/TournamentWindow.d.ts +0 -124
- package/dist/src/structures/TournamentWindow.js +0 -52
- package/dist/src/structures/TournamentWindow.js.map +0 -1
- package/dist/src/structures/stw/STWHero.d.ts +0 -61
- package/dist/src/structures/stw/STWHero.js +0 -38
- package/dist/src/structures/stw/STWHero.js.map +0 -1
- package/dist/src/structures/stw/STWHeroLoadout.d.ts +0 -44
- package/dist/src/structures/stw/STWHeroLoadout.js +0 -34
- package/dist/src/structures/stw/STWHeroLoadout.js.map +0 -1
- package/dist/src/structures/stw/STWItem.d.ts +0 -31
- package/dist/src/structures/stw/STWItem.js +0 -23
- package/dist/src/structures/stw/STWItem.js.map +0 -1
- package/dist/src/structures/stw/STWLocker.d.ts +0 -32
- package/dist/src/structures/stw/STWLocker.js +0 -26
- package/dist/src/structures/stw/STWLocker.js.map +0 -1
- package/dist/src/structures/stw/STWMeleeWeaponSchematic.d.ts +0 -14
- package/dist/src/structures/stw/STWMeleeWeaponSchematic.js +0 -15
- package/dist/src/structures/stw/STWMeleeWeaponSchematic.js.map +0 -1
- package/dist/src/structures/stw/STWNewsMessage.d.ts +0 -42
- package/dist/src/structures/stw/STWNewsMessage.js +0 -27
- package/dist/src/structures/stw/STWNewsMessage.js.map +0 -1
- package/dist/src/structures/stw/STWProfile.d.ts +0 -132
- package/dist/src/structures/stw/STWProfile.js +0 -283
- package/dist/src/structures/stw/STWProfile.js.map +0 -1
- package/dist/src/structures/stw/STWRangedWeaponSchematic.d.ts +0 -14
- package/dist/src/structures/stw/STWRangedWeaponSchematic.js +0 -15
- package/dist/src/structures/stw/STWRangedWeaponSchematic.js.map +0 -1
- package/dist/src/structures/stw/STWResource.d.ts +0 -27
- package/dist/src/structures/stw/STWResource.js +0 -22
- package/dist/src/structures/stw/STWResource.js.map +0 -1
- package/dist/src/structures/stw/STWSchematic.d.ts +0 -72
- package/dist/src/structures/stw/STWSchematic.js +0 -40
- package/dist/src/structures/stw/STWSchematic.js.map +0 -1
- package/dist/src/structures/stw/STWStats.d.ts +0 -103
- package/dist/src/structures/stw/STWStats.js +0 -85
- package/dist/src/structures/stw/STWStats.js.map +0 -1
- package/dist/src/structures/stw/STWSurvivor.d.ts +0 -104
- package/dist/src/structures/stw/STWSurvivor.js +0 -76
- package/dist/src/structures/stw/STWSurvivor.js.map +0 -1
- package/dist/src/structures/stw/STWTeamPerk.d.ts +0 -19
- package/dist/src/structures/stw/STWTeamPerk.js +0 -20
- package/dist/src/structures/stw/STWTeamPerk.js.map +0 -1
- package/dist/src/structures/stw/STWTrapSchematic.d.ts +0 -15
- package/dist/src/structures/stw/STWTrapSchematic.js +0 -16
- package/dist/src/structures/stw/STWTrapSchematic.js.map +0 -1
- package/dist/src/structures/stw/STWWeaponSchematic.d.ts +0 -15
- package/dist/src/structures/stw/STWWeaponSchematic.js +0 -16
- package/dist/src/structures/stw/STWWeaponSchematic.js.map +0 -1
- package/dist/src/util/BinaryWriter.d.ts +0 -79
- package/dist/src/util/BinaryWriter.js +0 -136
- package/dist/src/util/BinaryWriter.js.map +0 -1
- package/dist/src/util/CurveTable.d.ts +0 -24
- package/dist/src/util/CurveTable.js +0 -37
- package/dist/src/util/CurveTable.js.map +0 -1
- /package/dist/src/exceptions/{StompConnectionError.d.ts → STOMPConnectionError.d.ts} +0 -0
- /package/dist/src/exceptions/{StompConnectionError.js → STOMPConnectionError.js} +0 -0
- /package/dist/src/exceptions/{StompConnectionError.js.map → STOMPConnectionError.js.map} +0 -0
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import STWItem from './STWItem';
|
|
2
|
-
import type { STWProfileSchematicData } from '../../../resources/httpResponses';
|
|
3
|
-
import type { STWItemRarity, STWItemTier, STWSchematicEvoType, STWSchematicMeleeSubType, STWSchematicRangedSubType, STWSchematicTrapSubType, STWSchematicType } from '../../../resources/structs';
|
|
4
|
-
import type Client from '../../Client';
|
|
5
|
-
/**
|
|
6
|
-
* Represents a Save The World profile's schematic
|
|
7
|
-
*/
|
|
8
|
-
declare class STWSchematic extends STWItem {
|
|
9
|
-
/**
|
|
10
|
-
* The schematic's type (ranged, melee, or trap)
|
|
11
|
-
*/
|
|
12
|
-
type: STWSchematicType;
|
|
13
|
-
/**
|
|
14
|
-
* The schematic's subtype (specific type of ranged/melee weapon or trap)
|
|
15
|
-
*/
|
|
16
|
-
subType?: STWSchematicRangedSubType | STWSchematicMeleeSubType | STWSchematicTrapSubType;
|
|
17
|
-
/**
|
|
18
|
-
* The schematic's name
|
|
19
|
-
*/
|
|
20
|
-
name?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The schematic's tier
|
|
23
|
-
*/
|
|
24
|
-
tier?: STWItemTier;
|
|
25
|
-
/**
|
|
26
|
-
* The schematic's evolution type
|
|
27
|
-
*/
|
|
28
|
-
evoType?: STWSchematicEvoType;
|
|
29
|
-
/**
|
|
30
|
-
* The schematic's rarity
|
|
31
|
-
*/
|
|
32
|
-
rarity?: STWItemRarity;
|
|
33
|
-
/**
|
|
34
|
-
* The schematic's level
|
|
35
|
-
*/
|
|
36
|
-
level: number;
|
|
37
|
-
/**
|
|
38
|
-
* The schematic's max level bonus
|
|
39
|
-
*/
|
|
40
|
-
maxLevelBonus: number;
|
|
41
|
-
/**
|
|
42
|
-
* The schematic's xp
|
|
43
|
-
*/
|
|
44
|
-
xp: number;
|
|
45
|
-
/**
|
|
46
|
-
* Whether the schematic is marked as seen
|
|
47
|
-
*/
|
|
48
|
-
isSeen: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Whether the schematic is marked as favorite
|
|
51
|
-
*/
|
|
52
|
-
isFavorite: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Whether the schematic is marked as refundable
|
|
55
|
-
*/
|
|
56
|
-
isRefundable: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* The schematic's perks
|
|
59
|
-
*/
|
|
60
|
-
alterations: string[];
|
|
61
|
-
/**
|
|
62
|
-
* The original rarities of the schematic's perks, before any upgrades
|
|
63
|
-
*/
|
|
64
|
-
alterationBaseRarities: string[];
|
|
65
|
-
constructor(client: Client, id: string, data: STWProfileSchematicData);
|
|
66
|
-
/**
|
|
67
|
-
* The schematic's power level.
|
|
68
|
-
* Depends on the tier, level, and rarity value
|
|
69
|
-
*/
|
|
70
|
-
get powerLevel(): number;
|
|
71
|
-
}
|
|
72
|
-
export default STWSchematic;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const Util_1 = require("../../util/Util");
|
|
5
|
-
const STWItem_1 = tslib_1.__importDefault(require("./STWItem"));
|
|
6
|
-
/**
|
|
7
|
-
* Represents a Save The World profile's schematic
|
|
8
|
-
*/
|
|
9
|
-
class STWSchematic extends STWItem_1.default {
|
|
10
|
-
constructor(client, id, data) {
|
|
11
|
-
super(client, id, data);
|
|
12
|
-
const parsedSchematic = (0, Util_1.parseSTWSchematicTemplateId)(data.templateId);
|
|
13
|
-
this.type = parsedSchematic.type;
|
|
14
|
-
this.subType = parsedSchematic.subType;
|
|
15
|
-
this.name = parsedSchematic.name;
|
|
16
|
-
this.tier = parsedSchematic.tier;
|
|
17
|
-
this.evoType = parsedSchematic.evoType;
|
|
18
|
-
this.rarity = parsedSchematic.rarity;
|
|
19
|
-
this.level = data.attributes.level;
|
|
20
|
-
this.maxLevelBonus = data.attributes.max_level_bonus;
|
|
21
|
-
this.xp = data.attributes.xp;
|
|
22
|
-
this.isSeen = data.attributes.item_seen;
|
|
23
|
-
this.isFavorite = data.attributes.favorite;
|
|
24
|
-
this.isRefundable = data.attributes.refundable;
|
|
25
|
-
this.alterations = data.attributes.alterations;
|
|
26
|
-
this.alterationBaseRarities = data.attributes.alteration_base_rarities;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* The schematic's power level.
|
|
30
|
-
* Depends on the tier, level, and rarity value
|
|
31
|
-
*/
|
|
32
|
-
get powerLevel() {
|
|
33
|
-
if (!this.rarity || !this.tier) {
|
|
34
|
-
return 1;
|
|
35
|
-
}
|
|
36
|
-
return (0, Util_1.calcSTWNonSurvivorPowerLevel)(this.rarity, this.level, this.tier);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.default = STWSchematic;
|
|
40
|
-
//# sourceMappingURL=STWSchematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"STWSchematic.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWSchematic.ts"],"names":[],"mappings":";;;AAAA,0CAA4F;AAC5F,gEAAgC;AAUhC;;GAEG;AACH,MAAM,YAAa,SAAQ,iBAAO;IAuEhC,YAAY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C,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1E,CAAC;CACF;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import Base from '../../Base';
|
|
2
|
-
import type Client from '../../Client';
|
|
3
|
-
import type { STWProfileStatsData } from '../../../resources/httpResponses';
|
|
4
|
-
import type { STWStatsNodeCostsData, STWStatsBRLoadoutData, STWStatsSTWLoadoutData, STWStatsMissionAlertRedemptionData, STWStatsQuestData, STWStatsGameplayStatData, STWStatsClientSettingsData, STWStatsResearchLevelsData, STWStatsDailyRewardsData, STWStatsEventCurrencyData, STWStatsXPData } from '../../../resources/structs';
|
|
5
|
-
/**
|
|
6
|
-
* Represents a Save The World profile's stats
|
|
7
|
-
*/
|
|
8
|
-
declare class STWStats extends Base {
|
|
9
|
-
/**
|
|
10
|
-
* The profile's node costs
|
|
11
|
-
*/
|
|
12
|
-
nodeCosts: STWStatsNodeCostsData;
|
|
13
|
-
/**
|
|
14
|
-
* The profile's Save The World loadout data
|
|
15
|
-
*/
|
|
16
|
-
stwLoadout: STWStatsSTWLoadoutData;
|
|
17
|
-
/**
|
|
18
|
-
* The profile's Battle Royale loadout data
|
|
19
|
-
*/
|
|
20
|
-
brLoadout: STWStatsBRLoadoutData;
|
|
21
|
-
/**
|
|
22
|
-
* The profile's mission alert redemption record
|
|
23
|
-
*/
|
|
24
|
-
missionAlertRedemptionRecord?: STWStatsMissionAlertRedemptionData[];
|
|
25
|
-
/**
|
|
26
|
-
* The profile's amount of rewards claimed post max level
|
|
27
|
-
*/
|
|
28
|
-
rewardsClaimedPostMaxLevel: number;
|
|
29
|
-
/**
|
|
30
|
-
* The profile's collection book max XP level
|
|
31
|
-
*/
|
|
32
|
-
collectionBookMaxXPLevel?: number;
|
|
33
|
-
/**
|
|
34
|
-
* Whether the profile has claimed the MFA reward
|
|
35
|
-
*/
|
|
36
|
-
mfaRewardClaimed: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* The profile's quests data
|
|
39
|
-
*/
|
|
40
|
-
quests?: STWStatsQuestData;
|
|
41
|
-
/**
|
|
42
|
-
* The profile's amount of legacy research points spent
|
|
43
|
-
*/
|
|
44
|
-
legacyResearchPointsSpent: number;
|
|
45
|
-
/**
|
|
46
|
-
* The profile's gameplay stats
|
|
47
|
-
*/
|
|
48
|
-
gameplayStats: STWStatsGameplayStatData[];
|
|
49
|
-
/**
|
|
50
|
-
* The profile's unslot mtx spend
|
|
51
|
-
*/
|
|
52
|
-
unslotMtxSpend: number;
|
|
53
|
-
/**
|
|
54
|
-
* The profile's client settings
|
|
55
|
-
*/
|
|
56
|
-
clientSettings: STWStatsClientSettingsData;
|
|
57
|
-
/**
|
|
58
|
-
* The profile's research levels
|
|
59
|
-
*/
|
|
60
|
-
researchLevels?: STWStatsResearchLevelsData;
|
|
61
|
-
/**
|
|
62
|
-
* The profile's level (max is 310)
|
|
63
|
-
*/
|
|
64
|
-
level: number;
|
|
65
|
-
/**
|
|
66
|
-
* The profile's latent XP marker
|
|
67
|
-
*/
|
|
68
|
-
latentXpMarker: string;
|
|
69
|
-
/**
|
|
70
|
-
* The profile's event currency
|
|
71
|
-
*/
|
|
72
|
-
eventCurrency?: STWStatsEventCurrencyData;
|
|
73
|
-
/**
|
|
74
|
-
* The profile's inventory limit bonus
|
|
75
|
-
*/
|
|
76
|
-
inventoryLimitBonus: number;
|
|
77
|
-
/**
|
|
78
|
-
* The profile's amount of matches played
|
|
79
|
-
*/
|
|
80
|
-
matchesPlayed: number;
|
|
81
|
-
/**
|
|
82
|
-
* The profile's xp data
|
|
83
|
-
*/
|
|
84
|
-
xp: STWStatsXPData;
|
|
85
|
-
/**
|
|
86
|
-
* The profile's daily rewards data
|
|
87
|
-
*/
|
|
88
|
-
dailyRewards?: STWStatsDailyRewardsData;
|
|
89
|
-
/**
|
|
90
|
-
* The profile's amount of packs granted
|
|
91
|
-
*/
|
|
92
|
-
packsGranted: number;
|
|
93
|
-
/**
|
|
94
|
-
* @param client The main client
|
|
95
|
-
* @param data The stats data
|
|
96
|
-
*/
|
|
97
|
-
constructor(client: Client, data: STWProfileStatsData);
|
|
98
|
-
/**
|
|
99
|
-
* The profile's actual account level (ignoring the max level cap of 310)
|
|
100
|
-
*/
|
|
101
|
-
get actualLevel(): number;
|
|
102
|
-
}
|
|
103
|
-
export default STWStats;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const Base_1 = tslib_1.__importDefault(require("../../Base"));
|
|
5
|
-
/**
|
|
6
|
-
* Represents a Save The World profile's stats
|
|
7
|
-
*/
|
|
8
|
-
class STWStats extends Base_1.default {
|
|
9
|
-
/**
|
|
10
|
-
* @param client The main client
|
|
11
|
-
* @param data The stats data
|
|
12
|
-
*/
|
|
13
|
-
constructor(client, data) {
|
|
14
|
-
var _a, _b, _c, _d, _e, _f;
|
|
15
|
-
super(client);
|
|
16
|
-
this.nodeCosts = data.node_costs;
|
|
17
|
-
this.stwLoadout = {
|
|
18
|
-
selectedHeroLoadout: data.selected_hero_loadout,
|
|
19
|
-
modeLoadouts: data.mode_loadouts,
|
|
20
|
-
activeLoadoutIndex: data.active_loadout_index,
|
|
21
|
-
};
|
|
22
|
-
this.brLoadout = {
|
|
23
|
-
loadouts: data.loadouts,
|
|
24
|
-
lastAppliedLoadout: data.last_applied_loadout,
|
|
25
|
-
useRandomLoadout: data.use_random_loadout,
|
|
26
|
-
};
|
|
27
|
-
this.missionAlertRedemptionRecord = (_a = data.mission_alert_redemption_record.claimData) === null || _a === void 0 ? void 0 : _a.map((d) => ({
|
|
28
|
-
missionAlertId: d.missionAlertId,
|
|
29
|
-
redemptionDateUtc: new Date(d.redemptionDateUtc),
|
|
30
|
-
evictClaimDataAfterUtc: new Date(d.evictClaimDataAfterUtc),
|
|
31
|
-
}));
|
|
32
|
-
this.rewardsClaimedPostMaxLevel = data.rewards_claimed_post_max_level || 0;
|
|
33
|
-
this.collectionBookMaxXPLevel = (_b = data.collection_book) === null || _b === void 0 ? void 0 : _b.maxBookXpLevelAchieved;
|
|
34
|
-
this.mfaRewardClaimed = data.mfa_reward_claimed;
|
|
35
|
-
this.quests = ((_c = data.quest_manager) === null || _c === void 0 ? void 0 : _c.questPoolStats) ? {
|
|
36
|
-
dailyLoginInterval: new Date(data.quest_manager.dailyLoginInterval),
|
|
37
|
-
dailyQuestRerolls: data.quest_manager.dailyQuestRerolls,
|
|
38
|
-
poolStats: {
|
|
39
|
-
stats: data.quest_manager.questPoolStats.poolStats.map((d) => ({
|
|
40
|
-
poolName: d.poolName,
|
|
41
|
-
nextRefresh: new Date(d.nextRefresh),
|
|
42
|
-
rerollsRemaining: d.rerollsRemaining,
|
|
43
|
-
questHistory: d.questHistory,
|
|
44
|
-
})),
|
|
45
|
-
dailyLoginInterval: new Date(data.quest_manager.questPoolStats.dailyLoginInterval),
|
|
46
|
-
lockouts: ((_d = data.quest_manager.questPoolStats.poolLockouts) === null || _d === void 0 ? void 0 : _d.poolLockouts) || [],
|
|
47
|
-
},
|
|
48
|
-
} : undefined;
|
|
49
|
-
this.legacyResearchPointsSpent = data.legacy_research_points_spent;
|
|
50
|
-
this.gameplayStats = data.gameplay_stats;
|
|
51
|
-
this.unslotMtxSpend = data.unslot_mtx_spend;
|
|
52
|
-
this.clientSettings = data.client_settings;
|
|
53
|
-
this.researchLevels = typeof ((_e = data.research_levels) === null || _e === void 0 ? void 0 : _e.fortitude) === 'number' ? {
|
|
54
|
-
fortitude: data.research_levels.fortitude,
|
|
55
|
-
resistance: data.research_levels.resistance,
|
|
56
|
-
technology: data.research_levels.technology,
|
|
57
|
-
offense: data.research_levels.offense,
|
|
58
|
-
} : undefined;
|
|
59
|
-
this.level = data.level || 0;
|
|
60
|
-
this.latentXpMarker = data.latent_xp_marker;
|
|
61
|
-
this.eventCurrency = data.event_currency;
|
|
62
|
-
this.inventoryLimitBonus = data.inventory_limit_bonus;
|
|
63
|
-
this.matchesPlayed = data.matches_played;
|
|
64
|
-
this.xp = {
|
|
65
|
-
total: data.xp,
|
|
66
|
-
overflow: data.xp_overflow,
|
|
67
|
-
lost: data.xp_lost,
|
|
68
|
-
};
|
|
69
|
-
this.dailyRewards = ((_f = data.daily_rewards) === null || _f === void 0 ? void 0 : _f.lastClaimDate) ? {
|
|
70
|
-
nextDefaultReward: data.daily_rewards.nextDefaultReward,
|
|
71
|
-
totalDaysLoggedIn: data.daily_rewards.totalDaysLoggedIn,
|
|
72
|
-
lastClaimDate: new Date(data.daily_rewards.lastClaimDate),
|
|
73
|
-
additionalSchedules: data.daily_rewards.additionalSchedules,
|
|
74
|
-
} : undefined;
|
|
75
|
-
this.packsGranted = data.packs_granted;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* The profile's actual account level (ignoring the max level cap of 310)
|
|
79
|
-
*/
|
|
80
|
-
get actualLevel() {
|
|
81
|
-
return this.level + this.rewardsClaimedPostMaxLevel;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
exports.default = STWStats;
|
|
85
|
-
//# sourceMappingURL=STWStats.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"STWStats.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWStats.ts"],"names":[],"mappings":";;;AAAA,8DAA8B;AAU9B;;GAEG;AACH,MAAM,QAAS,SAAQ,cAAI;IA0GzB;;;OAGG;IACH,YAAY,MAAc,EAAE,IAAyB;;QACnD,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;QAEjC,IAAI,CAAC,UAAU,GAAG;YAChB,mBAAmB,EAAE,IAAI,CAAC,qBAAqB;YAC/C,YAAY,EAAE,IAAI,CAAC,aAAa;YAChC,kBAAkB,EAAE,IAAI,CAAC,oBAAoB;SAC9C,CAAC;QAEF,IAAI,C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I,CAAC,OAAO;SACnB,CAAC;QAEF,IAAI,CAAC,YAAY,GAAG,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,aAAa,EAAC,CAAC,CAAC;YACtD,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,iBAAkB;YACxD,iBAAiB,EAAE,IAAI,CAAC,aAAa,CAAC,iBAAkB;YACxD,aAAa,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC;YACzD,mBAAmB,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAoB;SAC7D,CAAC,CAAC,CAAC,SAAS,CAAC;QAEd,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC;IACzC,CAAC;IAED;;OAEG;IACH,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,0BAA0B,CAAC;IACtD,CAAC;CACF;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import STWItem from './STWItem';
|
|
2
|
-
import type Client from '../../Client';
|
|
3
|
-
import type { STWSurvivorSquadData, STWSurvivorType, STWItemRarity, STWSurvivorGender, STWItemTier } from '../../../resources/structs';
|
|
4
|
-
import type { STWProfileSurvivorData } from '../../../resources/httpResponses';
|
|
5
|
-
/**
|
|
6
|
-
* Represents a Save The World profile's survivor
|
|
7
|
-
*/
|
|
8
|
-
declare class STWSurvivor extends STWItem {
|
|
9
|
-
/**
|
|
10
|
-
* The survivor's type.
|
|
11
|
-
* Special means it's from an event (eg. halloween).
|
|
12
|
-
* Manager means it's a lead survivor
|
|
13
|
-
*/
|
|
14
|
-
type: STWSurvivorType;
|
|
15
|
-
/**
|
|
16
|
-
* The survivor's name (will be undefined for basic survivors)
|
|
17
|
-
*/
|
|
18
|
-
name?: string;
|
|
19
|
-
/**
|
|
20
|
-
* The survivor's tier
|
|
21
|
-
*/
|
|
22
|
-
tier: STWItemTier;
|
|
23
|
-
/**
|
|
24
|
-
* The survivor's rarity
|
|
25
|
-
*/
|
|
26
|
-
rarity: STWItemRarity;
|
|
27
|
-
/**
|
|
28
|
-
* The survivor's manager synergy
|
|
29
|
-
*/
|
|
30
|
-
managerSynergy?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The survivor's gender
|
|
33
|
-
*/
|
|
34
|
-
gender: STWSurvivorGender;
|
|
35
|
-
/**
|
|
36
|
-
* The survivor's level
|
|
37
|
-
*/
|
|
38
|
-
level: number;
|
|
39
|
-
/**
|
|
40
|
-
* The survivor's squad information.
|
|
41
|
-
* Will be undefined if the survivor is not part of a squad
|
|
42
|
-
*/
|
|
43
|
-
squad?: STWSurvivorSquadData;
|
|
44
|
-
/**
|
|
45
|
-
* The survivor's portrait ID
|
|
46
|
-
*/
|
|
47
|
-
portrait?: string;
|
|
48
|
-
/**
|
|
49
|
-
* The survivor's max level bonus
|
|
50
|
-
*/
|
|
51
|
-
maxLevelBonus: number;
|
|
52
|
-
/**
|
|
53
|
-
* The survivor's personality
|
|
54
|
-
*/
|
|
55
|
-
personality: string;
|
|
56
|
-
/**
|
|
57
|
-
* The survivor's XP
|
|
58
|
-
*/
|
|
59
|
-
xp: number;
|
|
60
|
-
/**
|
|
61
|
-
* The survivor's equipped building's ID.
|
|
62
|
-
* Seems to be unused by the game
|
|
63
|
-
*/
|
|
64
|
-
buildingSlotBuildingId?: string;
|
|
65
|
-
/**
|
|
66
|
-
* The survivor's set bonus
|
|
67
|
-
*/
|
|
68
|
-
setBonus: string;
|
|
69
|
-
/**
|
|
70
|
-
* Whether the survivor is marked as seen
|
|
71
|
-
*/
|
|
72
|
-
isSeen: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Whether the survivor is marked as favorite
|
|
75
|
-
*/
|
|
76
|
-
isFavorite: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* @param client The main client
|
|
79
|
-
* @param id The item ID
|
|
80
|
-
* @param data The survivors's data
|
|
81
|
-
*/
|
|
82
|
-
constructor(client: Client, id: string, data: STWProfileSurvivorData);
|
|
83
|
-
/**
|
|
84
|
-
* Whether the survivor is a leader
|
|
85
|
-
*/
|
|
86
|
-
get isLeader(): boolean;
|
|
87
|
-
/**
|
|
88
|
-
* The survivor's power level.
|
|
89
|
-
* Depends on the tier, level, rarity value and whether the survivor is a leader
|
|
90
|
-
*/
|
|
91
|
-
get powerLevel(): number;
|
|
92
|
-
/**
|
|
93
|
-
* The survivor's lead bonus.
|
|
94
|
-
* Will return 0 if the survivor is not a leader or not part of a squad
|
|
95
|
-
*/
|
|
96
|
-
get leadBonus(): number;
|
|
97
|
-
/**
|
|
98
|
-
* Calculates the survivor's bonus.
|
|
99
|
-
* Depends on the leader's rarity and personality.
|
|
100
|
-
* Returns 0 if the survivor is a leader
|
|
101
|
-
*/
|
|
102
|
-
calcSurvivorBonus(leader: STWSurvivor): 0 | 2 | 3 | 4 | 5 | 8 | -2;
|
|
103
|
-
}
|
|
104
|
-
export default STWSurvivor;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const STWItem_1 = tslib_1.__importDefault(require("./STWItem"));
|
|
5
|
-
const Util_1 = require("../../util/Util");
|
|
6
|
-
/**
|
|
7
|
-
* Represents a Save The World profile's survivor
|
|
8
|
-
*/
|
|
9
|
-
class STWSurvivor extends STWItem_1.default {
|
|
10
|
-
/**
|
|
11
|
-
* @param client The main client
|
|
12
|
-
* @param id The item ID
|
|
13
|
-
* @param data The survivors's data
|
|
14
|
-
*/
|
|
15
|
-
constructor(client, id, data) {
|
|
16
|
-
super(client, id, data);
|
|
17
|
-
const parsedSurvivor = (0, Util_1.parseSTWSurvivorTemplateId)(data.templateId);
|
|
18
|
-
this.type = parsedSurvivor.type;
|
|
19
|
-
this.name = parsedSurvivor.name;
|
|
20
|
-
this.tier = parsedSurvivor.tier;
|
|
21
|
-
this.rarity = parsedSurvivor.rarity;
|
|
22
|
-
this.managerSynergy = data.attributes.managerSynergy;
|
|
23
|
-
this.gender = data.attributes.gender === '1' ? 'male' : 'female';
|
|
24
|
-
this.level = data.attributes.level;
|
|
25
|
-
this.squad = data.attributes.squad_id ? {
|
|
26
|
-
id: data.attributes.squad_id,
|
|
27
|
-
name: data.attributes.squad_id.split('_')[3],
|
|
28
|
-
type: data.attributes.squad_id.split('_')[2],
|
|
29
|
-
slotIdx: data.attributes.squad_slot_idx,
|
|
30
|
-
} : undefined;
|
|
31
|
-
this.portrait = data.attributes.portrait;
|
|
32
|
-
this.maxLevelBonus = data.attributes.max_level_bonus;
|
|
33
|
-
this.personality = data.attributes.personality;
|
|
34
|
-
this.xp = data.attributes.xp;
|
|
35
|
-
this.buildingSlotBuildingId = data.attributes.building_slot_used !== -1 ? data.attributes.slotted_building_id : undefined;
|
|
36
|
-
this.setBonus = data.attributes.set_bonus;
|
|
37
|
-
this.isSeen = data.attributes.item_seen;
|
|
38
|
-
this.isFavorite = data.attributes.favorite;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Whether the survivor is a leader
|
|
42
|
-
*/
|
|
43
|
-
get isLeader() {
|
|
44
|
-
return this.type === 'manager';
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* The survivor's power level.
|
|
48
|
-
* Depends on the tier, level, rarity value and whether the survivor is a leader
|
|
49
|
-
*/
|
|
50
|
-
get powerLevel() {
|
|
51
|
-
return (0, Util_1.calcSTWSurvivorPowerLevel)(this.rarity, this.isLeader, this.level, this.tier);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* The survivor's lead bonus.
|
|
55
|
-
* Will return 0 if the survivor is not a leader or not part of a squad
|
|
56
|
-
*/
|
|
57
|
-
get leadBonus() {
|
|
58
|
-
if (!this.managerSynergy || !this.squad)
|
|
59
|
-
return 0;
|
|
60
|
-
return (0, Util_1.calcSTWSurvivorLeadBonus)(this.managerSynergy, this.squad.name, this.powerLevel);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Calculates the survivor's bonus.
|
|
64
|
-
* Depends on the leader's rarity and personality.
|
|
65
|
-
* Returns 0 if the survivor is a leader
|
|
66
|
-
*/
|
|
67
|
-
calcSurvivorBonus(leader) {
|
|
68
|
-
if (this.isLeader)
|
|
69
|
-
return 0;
|
|
70
|
-
if (!leader.isLeader)
|
|
71
|
-
throw new Error('The leader survivor must be a leader');
|
|
72
|
-
return (0, Util_1.calcSTWSurvivorBonus)(leader.personality, leader.rarity, this.personality, this.powerLevel);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
exports.default = STWSurvivor;
|
|
76
|
-
//# sourceMappingURL=STWSurvivor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"STWSurvivor.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWSurvivor.ts"],"names":[],"mappings":";;;AAAA,gEAAgC;AAChC,0CAIyB;AAQzB;;GAEG;AACH,MAAM,WAAY,SAAQ,iBAAO;IAqF/B;;;;OAIG;IACH,YAAY,MAAc,EAAE,EAAU,EAAE,IAA4B;QAClE,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAExB,MAAM,cAAc,GAAG,IAAA,iCAA0B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEnE,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC;QAChC,IAAI,CAAC,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC;QAEpC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;QAErD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QA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ED;;;OAGG;IACH,IAAW,UAAU;QACnB,OAAO,IAAA,gCAAyB,EAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACtF,CAAC;IAED;;;OAGG;IACH,IAAW,SAAS;QAClB,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,OAAO,CAAC,CAAC;QAElD,OAAO,IAAA,+BAAwB,EAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACzF,CAAC;IAED;;;;OAIG;IACI,iBAAiB,CAAC,MAAmB;QAC1C,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO,CAAC,CAAC;QAC5B,IAAI,CAAC,MAAM,CAAC,QAAQ;YAAE,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAE9E,OAAO,IAAA,2BAAoB,EAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACpG,CAAC;CACF;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import STWItem from './STWItem';
|
|
2
|
-
import type { STWProfileItemData } from '../../../resources/httpResponses';
|
|
3
|
-
import type Client from '../../Client';
|
|
4
|
-
/**
|
|
5
|
-
* Represents a Save The World profile's team perk
|
|
6
|
-
*/
|
|
7
|
-
declare class STWTeamPerk extends STWItem {
|
|
8
|
-
/**
|
|
9
|
-
* The team perk's ID
|
|
10
|
-
*/
|
|
11
|
-
teamPerkId: string;
|
|
12
|
-
/**
|
|
13
|
-
* @param client The main client
|
|
14
|
-
* @param id The item ID
|
|
15
|
-
* @param data The team perk data
|
|
16
|
-
*/
|
|
17
|
-
constructor(client: Client, id: string, data: STWProfileItemData);
|
|
18
|
-
}
|
|
19
|
-
export default STWTeamPerk;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const STWItem_1 = tslib_1.__importDefault(require("./STWItem"));
|
|
5
|
-
/**
|
|
6
|
-
* Represents a Save The World profile's team perk
|
|
7
|
-
*/
|
|
8
|
-
class STWTeamPerk extends STWItem_1.default {
|
|
9
|
-
/**
|
|
10
|
-
* @param client The main client
|
|
11
|
-
* @param id The item ID
|
|
12
|
-
* @param data The team perk data
|
|
13
|
-
*/
|
|
14
|
-
constructor(client, id, data) {
|
|
15
|
-
super(client, id, data);
|
|
16
|
-
this.teamPerkId = data.templateId.split(':')[1];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.default = STWTeamPerk;
|
|
20
|
-
//# sourceMappingURL=STWTeamPerk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"STWTeamPerk.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWTeamPerk.ts"],"names":[],"mappings":";;;AAAA,gEAAgC;AAIhC;;GAEG;AACH,MAAM,WAAY,SAAQ,iBAAO;IAM/B;;;;OAIG;IACH,YAAY,MAAc,EAAE,EAAU,EAAE,IAAwB;QAC9D,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAExB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE,CAAC;IACnD,CAAC;CACF;AAED,kBAAe,WAAW,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import STWSchematic from './STWSchematic';
|
|
2
|
-
import type { STWSchematicTrapSubType } from '../../../resources/structs';
|
|
3
|
-
import type Client from '../../Client';
|
|
4
|
-
import type { STWProfileSchematicData } from '../../../resources/httpResponses';
|
|
5
|
-
declare class STWTrapSchematic extends STWSchematic {
|
|
6
|
-
type: 'trap';
|
|
7
|
-
subType: STWSchematicTrapSubType;
|
|
8
|
-
evoType: never;
|
|
9
|
-
constructor(client: Client, id: string, data: STWProfileSchematicData & {
|
|
10
|
-
type: 'trap';
|
|
11
|
-
subType: STWSchematicTrapSubType;
|
|
12
|
-
evoType: never;
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export default STWTrapSchematic;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const STWSchematic_1 = tslib_1.__importDefault(require("./STWSchematic"));
|
|
5
|
-
const Util_1 = require("../../util/Util");
|
|
6
|
-
class STWTrapSchematic extends STWSchematic_1.default {
|
|
7
|
-
constructor(client, id, data) {
|
|
8
|
-
super(client, id, data);
|
|
9
|
-
const parsedSchematic = (0, Util_1.parseSTWSchematicTemplateId)(data.templateId);
|
|
10
|
-
this.type = parsedSchematic.type;
|
|
11
|
-
this.subType = parsedSchematic.subType;
|
|
12
|
-
this.evoType = parsedSchematic.evoType;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.default = STWTrapSchematic;
|
|
16
|
-
//# sourceMappingURL=STWTrapSchematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"STWTrapSchematic.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWTrapSchematic.ts"],"names":[],"mappings":";;;AAAA,0EAA0C;AAC1C,0CAA8D;AAK9D,MAAM,gBAAiB,SAAQ,sBAAY;IAKzC,YAAY,MAAc,EAAE,EAAU,EAAE,IAIvC;QACC,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAExB,MAAM,eAAe,GAAG,IAAA,kCAA2B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAErE,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC,IAAc,CAAC;QAC3C,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAAkC,CAAC;QAClE,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAAgB,CAAC;IAClD,CAAC;CACF;AAED,kBAAe,gBAAgB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import STWSchematic from './STWSchematic';
|
|
2
|
-
import type Client from '../../Client';
|
|
3
|
-
import type { STWProfileSchematicData } from '../../../resources/httpResponses';
|
|
4
|
-
import type { STWSchematicEvoType, STWSchematicMeleeSubType, STWSchematicRangedSubType } from '../../../resources/structs';
|
|
5
|
-
declare class STWWeaponSchematic extends STWSchematic {
|
|
6
|
-
type: 'ranged' | 'melee';
|
|
7
|
-
subType: STWSchematicRangedSubType | STWSchematicMeleeSubType;
|
|
8
|
-
evoType: STWSchematicEvoType;
|
|
9
|
-
constructor(client: Client, id: string, data: STWProfileSchematicData & {
|
|
10
|
-
type: 'ranged' | 'melee';
|
|
11
|
-
subType: STWSchematicRangedSubType | STWSchematicMeleeSubType;
|
|
12
|
-
evoType: STWSchematicEvoType;
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
export default STWWeaponSchematic;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const Util_1 = require("../../util/Util");
|
|
5
|
-
const STWSchematic_1 = tslib_1.__importDefault(require("./STWSchematic"));
|
|
6
|
-
class STWWeaponSchematic extends STWSchematic_1.default {
|
|
7
|
-
constructor(client, id, data) {
|
|
8
|
-
super(client, id, data);
|
|
9
|
-
const parsedSchematic = (0, Util_1.parseSTWSchematicTemplateId)(data.templateId);
|
|
10
|
-
this.type = parsedSchematic.type;
|
|
11
|
-
this.subType = parsedSchematic.subType;
|
|
12
|
-
this.evoType = parsedSchematic.evoType;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.default = STWWeaponSchematic;
|
|
16
|
-
//# sourceMappingURL=STWWeaponSchematic.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"STWWeaponSchematic.js","sourceRoot":"","sources":["../../../../src/structures/stw/STWWeaponSchematic.ts"],"names":[],"mappings":";;;AAAA,0CAA8D;AAC9D,0EAA0C;AAK1C,MAAM,kBAAmB,SAAQ,sBAAY;IAK3C,YAAY,MAAc,EAAE,EAAU,EAAE,IAIvC;QACC,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QAExB,MAAM,eAAe,GAAG,IAAA,kCAA2B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAErE,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC,IAA0B,CAAC;QACvD,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAA+D,CAAC;QAC/F,IAAI,CAAC,OAAO,GAAG,eAAe,CAAC,OAA8B,CAAC;IAChE,CAAC;CACF;AAED,kBAAe,kBAAkB,CAAC"}
|