diff --git a/RestoolsBBWatchReloaded.js b/RestoolsBBWatchReloaded.js index 3b3ff45..8b7f743 100644 --- a/RestoolsBBWatchReloaded.js +++ b/RestoolsBBWatchReloaded.js @@ -1,7 +1,7 @@ // ==UserScript== // @name IITC plugin: ResTools BB Watch Reloaded // @namespace https://git.martinvylet.cz/vykend/ResTools-BB-Watch-Reloaded -// @version 0.9.0 +// @version 0.9.1 // @description Scan window for BBs on ornamented portals, then check results // @author vikend // @icon @@ -85,7 +85,7 @@ function wrapper(plugin_info) const offsetMilliseconds = timezoneOffsetHours * 60 * 60 * 1000; // Convert offset to milliseconds const currentTimeWithOffset = new Date(currentTime.getTime() + offsetMilliseconds); const currentTimeString = currentTimeWithOffset.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', hour12: false }); - const currentTimePlus5Minutes = (new Date(currentTimeWithOffset.getTime() + 5 * 60000)).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', hour12: false }); + const currentTimePlus5Minutes = (new Date(currentTimeWithOffset.getTime() + 10 * 60000)).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', hour12: false }); let currentWave = 0; let battleOver = false; @@ -120,12 +120,12 @@ function wrapper(plugin_info) { let ornaments = portal.options.data.ornaments; - if (ornaments.indexOf("ap1") != -1 || ornaments.indexOf("ap1_v") != -1 || ornaments.indexOf("peBN_RES_WINNER-60") != -1 || ornaments.indexOf("peBN_ENL_WINNER-60") != -1) + if (ornaments.indexOf("ap1") != -1 || ornaments.indexOf("ap2") != -1 || ornaments.indexOf("ap3") != -1 || ornaments.indexOf("ap1_v") != -1 || ornaments.indexOf("ap2_v") != -1 || ornaments.indexOf("ap3_v") != -1 || ornaments.indexOf("peBN_RES_WINNER-60") != -1 || ornaments.indexOf("peBN_ENL_WINNER-60") != -1) { let portalUpload = { Guid: portal.options.guid, - IsOrnamented: (ornaments.indexOf("ap1") != -1 || ornaments.indexOf("ap1_v") != -1), - IsVolatile: (ornaments.indexOf("ap1_v") != -1), + IsOrnamented: (ornaments.indexOf("ap1") != -1 || ornaments.indexOf("ap1_v") != -1 || ornaments.indexOf("ap2") != -1 || ornaments.indexOf("ap2_v") != -1 || ornaments.indexOf("ap3") != -1 || ornaments.indexOf("ap3_v") != -1), + IsVolatile: (ornaments.indexOf("ap1_v") != -1 ||ornaments.indexOf("ap2_v") != -1||ornaments.indexOf("ap3_v") != -1), IsWinnerRes: (ornaments.indexOf("peBN_RES_WINNER-60") != -1), IsWinnerEnl: (ornaments.indexOf("peBN_ENL_WINNER-60") != -1), IsBeaconActive: (ornaments.indexOf("peBB_BATTLE_RARE") != -1),