This commit is contained in:
Omsi 2018-06-16 11:46:23 -07:00
parent a9814a07f8
commit 30a80499c7
4 changed files with 8 additions and 3 deletions

BIN
images/s24.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -1569,7 +1569,7 @@
<div id="You followed the instructions" class="achievement achievementlocked" style="background-image: url(images/s23.png)" ach-tooltip="You followed the instructions."><br></div>
</td>
<td>
<div id="s38" class="achievement achievementlocked" style="background-image: url(images/s24.png)" ach-tooltip="s38"><br></div>
<div id="Professional bodybuilder" class="achievement achievementlocked" style="background-image: url(images/s24.png)" ach-tooltip="Professional bodybuilder."><br></div>
</td>
</tr>
</table>

View File

@ -126,7 +126,7 @@ const allAchievements = {
s35 : "Should we tell them about buy max...",
s36 : "Dip the antimatter",
s37 : "You followed the instructions",
s38 : "s38",
s38 : "Professional bodybuilder",
};
const secretAchievementTooltips = {
s11 : "Click on this achievement.",
@ -152,7 +152,7 @@ const secretAchievementTooltips = {
s35 : "Buy single tickspeed 1,000,000 times.",
s36 : "Dip the antimatter.",
s37 : "Follow instructions.",
s38 : "s38",
s38 : "Get all your dimension bulk buyers to 1e100.",
};
const allAchievementNums = Object.invert(allAchievements)
// to retrieve by value: Object.keys(allAchievements).find(key => allAchievements[key] === "L4D: Left 4 Dimensions");

View File

@ -2322,11 +2322,13 @@ function updateAutobuyers() {
}
var maxedAutobuy = 0;
var e100autobuy = 0;
for (let tier = 1; tier <= 8; ++tier) {
document.getElementById("toggleBtn" + tier).style.display = "inline-block";
if (player.autobuyers[tier-1].bulk >= 1e100) {
player.autobuyers[tier-1].bulk = 1e100;
document.getElementById("buyerBtn" + tier).textContent = shortenDimensions(player.autobuyers[tier-1].bulk)+"x bulk purchase";
e100autobuy++;
}
else {
if (player.autobuyers[tier-1].interval <= 100) {
@ -2359,8 +2361,11 @@ function updateAutobuyers() {
document.getElementById("buyerBtnInf").style.display = "none"
maxedAutobuy++;
}
console.log(e100autobuy)
if (maxedAutobuy >= 9) giveAchievement("Age of Automation");
if (maxedAutobuy >= 12) giveAchievement("Definitely not worth it");
if (e100autobuy >= 8) giveAchievement("Professional bodybuilder");
document.getElementById("buyerBtnTickSpeed").innerHTML = "40% smaller interval <br>Cost: " + player.autobuyers[8].cost + " IP"
document.getElementById("buyerBtnDimBoost").innerHTML = "40% smaller interval <br>Cost: " + player.autobuyers[9].cost + " IP"