mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-10 06:02:13 +00:00
s42, player.secretUnlocks
This commit is contained in:
parent
41e4126b7d
commit
dfe2bb00ec
BIN
images/s26.png
Normal file
BIN
images/s26.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
@ -1600,7 +1600,7 @@
|
||||
<div id="That dimension doesn’t exist" class="achievement achievementlocked" style="background-image: url(images/s25.png)" ach-tooltip="That dimension doesn’t exist"><br></div>
|
||||
</td>
|
||||
<td>
|
||||
<div id="s42" class="achievement achievementlocked" style="background-image: url(images/s26.png)" ach-tooltip="s42"><br></div>
|
||||
<div id="Was it even broken?" class="achievement achievementlocked" style="background-image: url(images/s26.png)" ach-tooltip="Was it even broken?"><br></div>
|
||||
</td>
|
||||
<td>
|
||||
<div id="s43" class="achievement achievementlocked" style="background-image: url(images/s27.png)" ach-tooltip="s43"><br></div>
|
||||
|
@ -128,7 +128,7 @@ const allAchievements = {
|
||||
s37 : "You followed the instructions",
|
||||
s38 : "Professional bodybuilder",
|
||||
s41 : "That dimension doesn’t exist",
|
||||
s42 : "s42",
|
||||
s42 : "Was it even broken?",
|
||||
s43 : "s43",
|
||||
s44 : "s44",
|
||||
s45 : "s45",
|
||||
@ -162,7 +162,7 @@ const secretAchievementTooltips = {
|
||||
s37 : "Follow instructions.",
|
||||
s38 : "Get all your dimension bulk buyers to 1e100.",
|
||||
s41 : "Try to purchase the 9th dimension.",
|
||||
s42 : "s42",
|
||||
s42 : '"Fix" your save.',
|
||||
s43 : "s43",
|
||||
s44 : "s44",
|
||||
s45 : "s45",
|
||||
|
@ -110,6 +110,7 @@ function onLoad() {
|
||||
if (player.why === undefined) player.why = 0
|
||||
if (player.options.animations === undefined) player.options.animations = {floatingText: true, bigCrunch: true, eternity: true, tachyonParticles: true}
|
||||
if (player.options.animations.reality === undefined) player.options.animations.reality = true;
|
||||
if (player.secretUnlocks === undefined) player.secretUnlocks = {painTimer: 0, why: player.why, fixed: "notyetfixed"};
|
||||
if (player.realities === undefined) player.realities = 0;
|
||||
if (player.thisReality === undefined) player.thisReality = player.totalTimePlayed;
|
||||
if (player.bestReality === undefined) player.bestReality = 9999999999;
|
||||
@ -120,6 +121,10 @@ function onLoad() {
|
||||
sliderText.textContent = "Update rate: " + player.options.updateRate + "ms";
|
||||
slider.value = player.options.updateRate;
|
||||
|
||||
if (player.secretUnlocks.fixed === "hasbeenfixed") {
|
||||
giveAchievement("Was it even broken?")
|
||||
}
|
||||
|
||||
if (player.secondAmount !== 0) {
|
||||
document.getElementById("thirdRow").style.display = "table-row";
|
||||
document.getElementById("tickSpeed").style.visibility = "visible";
|
||||
|
@ -8,7 +8,6 @@ var shiftDown = false;
|
||||
var controlDown = false;
|
||||
var justImported = false;
|
||||
var saved = 0;
|
||||
var painTimer = 0;
|
||||
var keySequence = 0;
|
||||
var failureCount = 0;
|
||||
var implosionCheck = 0;
|
||||
@ -1745,7 +1744,7 @@ function galaxyReset() {
|
||||
dimlife: player.dimlife,
|
||||
dead: player.dead,
|
||||
dilation: player.dilation,
|
||||
why: player.why,
|
||||
secretUnlocks: player.secretUnlocks,
|
||||
realities: player.realities,
|
||||
thisReality: player.thisReality,
|
||||
bestReality: player.bestReality,
|
||||
@ -3046,7 +3045,7 @@ document.getElementById("bigcrunch").onclick = function () {
|
||||
dimlife: player.dimlife,
|
||||
dead: player.dead,
|
||||
dilation: player.dilation,
|
||||
why: player.why,
|
||||
secretUnlocks: player.secretUnlocks,
|
||||
realities: player.realities,
|
||||
thisReality: player.thisReality,
|
||||
bestReality: player.bestReality,
|
||||
@ -3422,7 +3421,7 @@ function eternity(force, auto) {
|
||||
upgrades: player.dilation.upgrades,
|
||||
rebuyables: player.dilation.rebuyables
|
||||
},
|
||||
why: player.why,
|
||||
secretUnlocks: player.secretUnlocks,
|
||||
realities: player.realities,
|
||||
thisReality: player.thisReality,
|
||||
bestReality: player.bestReality,
|
||||
@ -3784,7 +3783,7 @@ function reality(force) {
|
||||
3: 0,
|
||||
}
|
||||
},
|
||||
why: player.why,
|
||||
secretUnlocks: player.secretUnlocks,
|
||||
realities: player.realities+1,
|
||||
thisReality: 0,
|
||||
bestReality: Math.min(player.thisReality, player.bestReality),
|
||||
@ -4011,7 +4010,7 @@ function startChallenge(name, target) {
|
||||
dimlife: player.dimlife,
|
||||
dead: player.dead,
|
||||
dilation: player.dilation,
|
||||
why: player.why,
|
||||
secretUnlocks: player.secretUnlocks,
|
||||
realities: player.realities,
|
||||
thisReality: player.thisReality,
|
||||
bestReality: player.bestReality,
|
||||
@ -4578,7 +4577,7 @@ function startEternityChallenge(name, startgoal, goalIncrease) {
|
||||
upgrades: player.dilation.upgrades,
|
||||
rebuyables: player.dilation.rebuyables
|
||||
},
|
||||
why: player.why,
|
||||
secretUnlocks: player.secretUnlocks,
|
||||
realities: player.realities,
|
||||
thisReality: player.thisReality,
|
||||
bestReality: player.bestReality,
|
||||
@ -5140,7 +5139,7 @@ setInterval(function() {
|
||||
if (player.replicanti.amount.gt(new Decimal("1e20000"))) giveAchievement("When will it be enough?")
|
||||
if (player.tickspeed.e < -8296262) giveAchievement("Faster than a potato^286078")
|
||||
if (player.timestudy.studies.length == 0 && player.dilation.active && player.infinityPoints.e >= 20000) giveAchievement("This is what I have to do to get rid of you.")
|
||||
if (player.why >= 1e5) giveAchievement("Should we tell them about buy max...")
|
||||
if (player.secretUnlocks.why >= 1e5) giveAchievement("Should we tell them about buy max...")
|
||||
if ( Math.max(document.documentElement.clientHeight, window.innerHeight || 0) <= 150 || parent.document.body.clientHeight <= 150) giveAchievement("Dip the antimatter")
|
||||
if ( player.realities > 0 || player.dilation.studies.includes(6)) $("#realitybtn").show()
|
||||
else $("#realitybtn").hide()
|
||||
@ -5466,8 +5465,8 @@ function gameLoop(diff) {
|
||||
Marathon2 = 0;
|
||||
}
|
||||
if (player.eternities >= 1 && (player.options.notation == "Standard" || player.options.notation == "Cancer" || player.options.notation == "Brackets")) {
|
||||
painTimer += player.options.updateRate/1000;
|
||||
if (painTimer >= 600) giveAchievement("Do you enjoy pain?");
|
||||
player.secretUnlocks.painTimer += player.options.updateRate/1000;
|
||||
if (player.secretUnlocks.painTimer >= 600) giveAchievement("Do you enjoy pain?");
|
||||
}
|
||||
|
||||
if(player.money.gt(Math.pow(10,63))) giveAchievement("Supersanic");
|
||||
|
@ -1,8 +1,9 @@
|
||||
function fixSave() {
|
||||
var save = atob(document.getElementById("brokenSave").value)
|
||||
|
||||
|
||||
var fixed = save.replace(/NaN/gi, "10")
|
||||
var stillToDo = JSON.parse(fixed)
|
||||
var fixed2 = fixed.replace("notyetfixed", "hasbeenfixed")
|
||||
var stillToDo = JSON.parse(fixed2)
|
||||
for (var i=0; i<stillToDo.autobuyers.length; i++) stillToDo.autobuyers[i].isOn = false
|
||||
|
||||
document.getElementById("fixed").value = btoa(JSON.stringify(stillToDo))
|
||||
|
Loading…
Reference in New Issue
Block a user