This commit is contained in:
IvarK 2017-09-24 00:02:31 +03:00
parent 2ad75e1cc0
commit 11aaf92fb1
2 changed files with 8 additions and 1 deletions

View File

@ -977,6 +977,9 @@
<br>
<span style="font-size: 80%">Galaxies required to always Dimboost:</span>
<input type="text" onchange="updatePriorities()" id="overGalaxies"></input>
<br><div id="bulkdimboost">
<span style="font-size: 80%">Bulk DimBoost amount:</span>
<input type="text" onchange="updatePriorities()" id="bulkDimboost"></input></div>
<br>
<span style="font-size: 80%">Is active</span>
<input type="checkbox" onchange="updateAutobuyers()" id="10ison"></input>

View File

@ -396,6 +396,7 @@ function loadAutoBuyerSettings() {
document.getElementById("priority11").value = player.autobuyers[10].priority
document.getElementById("priority12").value = player.autobuyers[11].priority
document.getElementById("overGalaxies").value = player.overXGalaxies
document.getElementById("bulkDimBoost").value = player.autobuyers[9].bulk
}
@ -2631,7 +2632,7 @@ function updatePriorities() {
if (infvalue.includes("e")) infvalue = parseInt(infvalue.split("e")[0]) * Math.pow(10, parseInt(infvalue.split("e")[1]))
else infvalue = parseInt(infvalue)
player.autobuyers[11].priority = infvalue
player.autobuyers[9].bulk = parseInt(document.getElementById("bulkDimBoost").value)
player.overXGalaxies = parseInt(document.getElementById("overGalaxies").value)
priorityOrder()
}
@ -3406,6 +3407,9 @@ setInterval(function () {
}
if (player.infinityUpgrades.includes("bulkBoost")) document.getElementById("bulkdimboost").style.display = "inline"
else document.getElementById("bulkdimboost").style.display = "none"
if (player.infinityUpgrades.includes("timeMult")) document.getElementById("infi11").className = "infinistorebtnbought"
if (player.infinityUpgrades.includes("dimMult")) document.getElementById("infi21").className = "infinistorebtnbought"
if (player.infinityUpgrades.includes("18Mult")) document.getElementById("infi12").className = "infinistorebtnbought"