From 551e74d0ed17176392b543632a1a1e1b62091c4d Mon Sep 17 00:00:00 2001 From: cLearBody03 <34204073+cLearBody03@users.noreply.github.com> Date: Fri, 18 Jan 2019 16:49:15 +0800 Subject: [PATCH 1/3] Update portal.js --- modules/portal.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/portal.js b/modules/portal.js index dfa883f8d..442c7db9f 100644 --- a/modules/portal.js +++ b/modules/portal.js @@ -92,6 +92,7 @@ function autoPortal() { case "Watch": case "Lead": case "Corrupted": + case "Domination": if(!game.global.challengeActive) { doPortal(autoTrimpSettings.AutoPortal.selected); } @@ -173,6 +174,7 @@ function findOutCurrentPortalLevel() { "Lead" : 181, "Watch" : 181, "Corrupted" : 191 + "Domination" : 216 }; var AP = getPageSetting("AutoPortal"); switch (AP) { From 46b3d12d147a75ed9818582b0bb948876f3bd740 Mon Sep 17 00:00:00 2001 From: cLearBody03 <34204073+cLearBody03@users.noreply.github.com> Date: Fri, 18 Jan 2019 16:55:56 +0800 Subject: [PATCH 2/3] Added Domination --- SettingsGUI.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SettingsGUI.js b/SettingsGUI.js index 8b88d2df2..c3a19d87e 100644 --- a/SettingsGUI.js +++ b/SettingsGUI.js @@ -257,9 +257,9 @@ function initializeAllSettings() { createSetting('ManualCoords', 'Don\'t buy Coords', 'Enable it if you know what you\'re doing, disable it if you don\'t know what you\'re doing. For when manually handling coords means a lot on challenges like Trapper.', 'boolean', false, null, 'Core'); //NewLine3 document.getElementById('ManualCoords').parentNode.insertAdjacentHTML('afterend','
'); - createSetting('AutoPortal', 'Auto Portal', 'Automatically portal. Will NOT auto-portal if you have a challenge active, the challenge setting dictates which challenge it will select for the next run. All challenge settings will portal right after the challenge ends, regardless. Helium Per Hour only portals at cell 1 of the first level where your He/Hr went down even slightly compared to the current runs Best He/Hr. Take note, there is a Buffer option, which is like a grace percentage of how low it can dip without triggering. Setting a buffer will portal mid-zone if you exceed 5x of the buffer. CAUTION: Selecting He/hr may immediately portal you if its lower-(use Pause AutoTrimps button to pause the script first to avoid this)', 'dropdown', 'Off', ['Off', 'Helium Per Hour', 'Balance', 'Decay', 'Electricity', 'Life', 'Crushed', 'Nom', 'Toxicity', 'Watch', 'Lead', 'Corrupted', 'Custom'], "Core"); + createSetting('AutoPortal', 'Auto Portal', 'Automatically portal. Will NOT auto-portal if you have a challenge active, the challenge setting dictates which challenge it will select for the next run. All challenge settings will portal right after the challenge ends, regardless. Helium Per Hour only portals at cell 1 of the first level where your He/Hr went down even slightly compared to the current runs Best He/Hr. Take note, there is a Buffer option, which is like a grace percentage of how low it can dip without triggering. Setting a buffer will portal mid-zone if you exceed 5x of the buffer. CAUTION: Selecting He/hr may immediately portal you if its lower-(use Pause AutoTrimps button to pause the script first to avoid this)', 'dropdown', 'Off', ['Off', 'Helium Per Hour', 'Balance', 'Decay', 'Electricity', 'Life', 'Crushed', 'Nom', 'Toxicity', 'Watch', 'Lead', 'Corrupted', 'Domination', 'Custom'], "Core"); //document.getElementById("AutoPortal").style="font-size: 1.0vw;"; //fit it on 1 line. - createSetting('HeliumHourChallenge', 'Portal Challenge', 'Automatically portal into this challenge when using helium per hour or custom autoportal. Custom portals after cell 100 of the zone specified. ', 'dropdown', 'None', ['None', 'Balance', 'Decay', 'Electricity', 'Life', 'Crushed', 'Nom', 'Toxicity', 'Watch', 'Lead', 'Corrupted'], "Core"); + createSetting('HeliumHourChallenge', 'Portal Challenge', 'Automatically portal into this challenge when using helium per hour or custom autoportal. Custom portals after cell 100 of the zone specified. ', 'dropdown', 'None', ['None', 'Balance', 'Decay', 'Electricity', 'Life', 'Crushed', 'Nom', 'Toxicity', 'Watch', 'Lead', 'Corrupted', 'Domination'], "Core"); //document.getElementById("HeliumHourChallengeLabel").innerHTML = "Portal Challenge:"; //fit it on 1 line. createSetting('CustomAutoPortal', 'Custom Portal', 'Automatically portal AFTER clearing this level.(ie: setting to 200 would portal when you first reach level 201)', 'value', '999', null, "Core"); createSetting('HeHrDontPortalBefore', 'Don\'t Portal Before', 'Do NOT allow Helium per Hour AutoPortal setting to portal BEFORE this level is reached. It is an additional check that prevents drops in helium/hr from triggering autoportal. Set to 0 or -1 to completely disable this check. (only shows up with Helium per Hour set)', 'value', '999', null, "Core"); @@ -932,4 +932,4 @@ function toggleAutoMaps(){ else setPageSetting('AutoMaps',1); document.getElementById("autoMapBtn").setAttribute("class", "noselect settingsBtn settingBtn" + autoTrimpSettings.AutoMaps.value); -} \ No newline at end of file +} From 9c16172a0db118d2f58f89d545807d17308d3d35 Mon Sep 17 00:00:00 2001 From: cLearBody03 <34204073+cLearBody03@users.noreply.github.com> Date: Fri, 18 Jan 2019 17:03:36 +0800 Subject: [PATCH 3/3] Added Domination --- modules/portal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/portal.js b/modules/portal.js index 442c7db9f..b9a498b68 100644 --- a/modules/portal.js +++ b/modules/portal.js @@ -173,7 +173,7 @@ function findOutCurrentPortalLevel() { "Toxicity" : 166, "Lead" : 181, "Watch" : 181, - "Corrupted" : 191 + "Corrupted" : 191, "Domination" : 216 }; var AP = getPageSetting("AutoPortal");