Skip to content

Commit 0a5e611

Browse files
committed
Update compiled scripts
1 parent b35236d commit 0a5e611

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

extension/dst/chestManagement.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
2626
function verb(n) { return function (v) { return step([n, v]); }; }
2727
function step(op) {
2828
if (f) throw new TypeError("Generator is already executing.");
29-
while (_) try {
29+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
3030
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
3131
if (y = 0, t) op = [op[0] & 2, t.value];
3232
switch (op[0]) {
@@ -389,7 +389,7 @@ var IdleChampionsApi = (function () {
389389
IdleChampionsApi.LANGUAGE_ID = "1";
390390
IdleChampionsApi.MAX_BUY_CHESTS = 250;
391391
IdleChampionsApi.MAX_OPEN_CHESTS = 1000;
392-
IdleChampionsApi.MAX_BLACKSMITH = 50;
392+
IdleChampionsApi.MAX_BLACKSMITH = 1000;
393393
return IdleChampionsApi;
394394
}());
395395
document.addEventListener("DOMContentLoaded", loaded);
@@ -460,10 +460,10 @@ function refreshClick() {
460460
});
461461
}
462462
function refreshInventory(userId, hash) {
463-
var _a, _b, _c;
464463
return __awaiter(this, void 0, void 0, function () {
465464
var userDetailsResponse;
466-
var _d;
465+
var _a;
466+
var _b, _c, _d;
467467
return __generator(this, function (_e) {
468468
switch (_e.label) {
469469
case 0:
@@ -485,7 +485,7 @@ function refreshInventory(userId, hash) {
485485
return [4, IdleChampionsApi.getUserDetails({
486486
server: _server,
487487
user_id: userId,
488-
hash: hash
488+
hash: hash,
489489
})];
490490
case 3:
491491
userDetailsResponse = _e.sent();
@@ -500,7 +500,7 @@ function refreshInventory(userId, hash) {
500500
return [4, IdleChampionsApi.getUserDetails({
501501
server: _server,
502502
user_id: userId,
503-
hash: hash
503+
hash: hash,
504504
})];
505505
case 4:
506506
userDetailsResponse = _e.sent();
@@ -514,11 +514,11 @@ function refreshInventory(userId, hash) {
514514
console.log("Refreshed inventory data.");
515515
console.debug(_userData);
516516
_instanceId = _userData.details.instance_id;
517-
chrome.storage.sync.set((_d = {}, _d[Globals.SETTING_INSTANCE_ID] = _userData.details.instance_id, _d));
517+
chrome.storage.sync.set((_a = {}, _a[Globals.SETTING_INSTANCE_ID] = _userData.details.instance_id, _a));
518518
document.getElementById("gemCount").textContent = _userData.details.red_rubies.toLocaleString();
519-
document.getElementById("silverChestCount").textContent = ((_a = _userData.details.chests[1]) === null || _a === void 0 ? void 0 : _a.toLocaleString()) || "0";
520-
document.getElementById("goldChestCount").textContent = ((_b = _userData.details.chests[2]) === null || _b === void 0 ? void 0 : _b.toLocaleString()) || "0";
521-
document.getElementById("electrumChestCount").textContent = ((_c = _userData.details.chests[282]) === null || _c === void 0 ? void 0 : _c.toLocaleString()) || "0";
519+
document.getElementById("silverChestCount").textContent = ((_b = _userData.details.chests[1]) === null || _b === void 0 ? void 0 : _b.toLocaleString()) || "0";
520+
document.getElementById("goldChestCount").textContent = ((_c = _userData.details.chests[2]) === null || _c === void 0 ? void 0 : _c.toLocaleString()) || "0";
521+
document.getElementById("electrumChestCount").textContent = ((_d = _userData.details.chests[282]) === null || _d === void 0 ? void 0 : _d.toLocaleString()) || "0";
522522
document.getElementById("whiteBlacksmithCount").textContent = findBuffCount(31..toString()).toLocaleString() || "0";
523523
document.getElementById("greenBlacksmithCount").textContent = findBuffCount(32..toString()).toLocaleString() || "0";
524524
document.getElementById("blueBlacksmithCount").textContent = findBuffCount(33..toString()).toLocaleString() || "0";
@@ -692,7 +692,7 @@ function openChests(userId, hash) {
692692
hash: hash,
693693
chestTypeId: chestType,
694694
count: currentAmount,
695-
instanceId: _instanceId
695+
instanceId: _instanceId,
696696
})];
697697
case 2:
698698
openResponse = _a.sent();
@@ -875,7 +875,7 @@ function useBlacksmithContracts(userId, hash) {
875875
heroId: heroId,
876876
contractType: contractType,
877877
count: currentAmount,
878-
instanceId: _instanceId
878+
instanceId: _instanceId,
879879
})];
880880
case 2:
881881
blacksmithResponse = _a.sent();

extension/service_worker.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)