diff --git a/loops/NOTES b/loops/NOTES index f89d1258..1a741085 100644 --- a/loops/NOTES +++ b/loops/NOTES @@ -144,4 +144,6 @@ town 3 - guilds and stuff Build Boat Hire Crew Inspire Crew - Set Sail \ No newline at end of file + Set Sail + + Nemoricus Test 2 \ No newline at end of file diff --git a/loops/driver.js b/loops/driver.js index 91e1d9be..f8219f08 100644 --- a/loops/driver.js +++ b/loops/driver.js @@ -278,7 +278,7 @@ function saveList() { setTimeout(() => { document.getElementById("amountCustom").value = globalCustomInput; }, 1000); - for (let i = 0; i < 5; i++) { + for (let i = 0; i < loadouts.length - 1; i++) { document.getElementById(`load${i + 1}name`).textContent = loadoutnames[i]; } } @@ -301,6 +301,16 @@ function clearList() { view.updateNextActions(); } +function loadActive() { + actions.nextLast = copyArray(next); + const newNext = []; + for (let i = 0; i < actions.current.length; i++) { + newNext.push({ name: actions.current[i].name, disabled: false, loops: actions.current[i].loops }); + } + actions.next = newNext; + view.updateNextActions(); +} + function unlockTown(townNum) { if (!towns[townNum].unlocked()) { townsUnlocked.push(townNum); diff --git a/loops/index.html b/loops/index.html index 503f4161..d457fe6d 100644 --- a/loops/index.html +++ b/loops/index.html @@ -212,6 +212,7 @@
+
@@ -220,6 +221,7 @@
+
@@ -258,9 +260,26 @@

+
6 +
+
+
7 +
+
+
8 +
+
+
9 +
+
+
0 +
+
+


-
+

+
diff --git a/loops/lang/en-EN/game.xml b/loops/lang/en-EN/game.xml index c7dba0a7..82c8976a 100644 --- a/loops/lang/en-EN/game.xml +++ b/loops/lang/en-EN/game.xml @@ -678,6 +678,8 @@ Action Options Action Stories Action List + Active + Next Loadouts Save List Load Selected List Clear List + Load Active List You can find more stuff with higher %. Progress Total Found diff --git a/loops/saving.js b/loops/saving.js index a0b9e9f3..9c4c1c1b 100644 --- a/loops/saving.js +++ b/loops/saving.js @@ -60,7 +60,7 @@ let guild = ""; let curLoadout = 0; let loadouts = []; -let loadoutnames = ["1", "2", "3", "4", "5"]; +let loadoutnames = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]; const skillList = ["Combat", "Magic", "Practical", "Alchemy", "Crafting", "Dark", "Chronomancy", "Pyromancy", "Restoration", "Spatiomancy"]; const skills = {}; const buffList = ["Ritual", "Imbuement", "Feast", "Aspirant"]; @@ -280,7 +280,7 @@ function load() { } } actions.nextLast = copyObject(actions.next); - loadouts = [[], [], [], [], [], []]; + loadouts = [[], [], [], [], [], [], [], [], [], [], []]; if (toLoad.loadouts) { for (let i = 0; i < toLoad.loadouts.length; i++) { if (!toLoad.loadouts[i]) { @@ -304,11 +304,11 @@ function load() { } } if (toLoad.loadoutnames) { - for (let i = 0; i < 5; i++) { + for (let i = 0; i < loadouts.length - 1; i++) { loadoutnames[i] = toLoad.loadoutnames[i]; } } else { - loadoutnames = ["1", "2", "3", "4", "5"]; + loadoutnames = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]; } curLoadout = toLoad.curLoadout; const elem = document.getElementById(`load${curLoadout}`); diff --git a/loops/views/main.view.js b/loops/views/main.view.js index 79cc6690..94f127ca 100644 --- a/loops/views/main.view.js +++ b/loops/views/main.view.js @@ -603,7 +603,7 @@ function View() { }; this.updateLoadout = function(num) { - for (let i = 0; i < 6; i++) { + for (let i = 0; i < loadouts.length; i++) { const elem = document.getElementById(`load${i}`); if (elem) { addClassToDiv(elem, "unused"); @@ -616,7 +616,7 @@ function View() { }; this.updateLoadoutNames = function() { - for (let i = 0; i < 5; i++) { + for (let i = 0; i < loadouts.length - 1; i++) { document.getElementById(`load${i + 1}name`).textContent = loadoutnames[i]; } };