some secret achs and cost change

This commit is contained in:
IvarK 2018-05-30 20:39:37 +03:00
parent 9b438355c0
commit 834489bf7f
6 changed files with 152 additions and 141 deletions

View File

@ -301,13 +301,13 @@
<table class="table" id="studytable">
<tr>
<td><button class="timestudylocked" id="dilstudy2" onclick="buyDilationStudy(2, 1000000)">Unlock the 5th Time Dimension<span>Cost: 1,000,000 Time Theorems</button></td>
<td><button class="timestudylocked" id="dilstudy3" onclick="buyDilationStudy(3, 3000000)">Unlock the 6th Time Dimension<span>Cost: 3,000,000 Time Theorems</button></td>
<td><button class="timestudylocked" id="dilstudy3" onclick="buyDilationStudy(3, 1e7)">Unlock the 6th Time Dimension<span>Cost: 10,000,000 Time Theorems</button></td>
</tr>
</table>
<table class="table" id="studytable">
<tr>
<td><button class="timestudylocked" id="dilstudy4" onclick="buyDilationStudy(4, 8000000)">Unlock the 7th Time Dimension<span>Cost: 8,000,000 Time Theorems</button></td>
<td><button class="timestudylocked" id="dilstudy5" onclick="buyDilationStudy(5, 20000000)">Unlock the 8th Time Dimension<span>Cost: 20,000,000 Time Theorems</button></td>
<td><button class="timestudylocked" id="dilstudy4" onclick="buyDilationStudy(4, 1e8)">Unlock the 7th Time Dimension<span>Cost: 100,000,000 Time Theorems</button></td>
<td><button class="timestudylocked" id="dilstudy5" onclick="buyDilationStudy(5, 1e9)">Unlock the 8th Time Dimension<span>Cost: 1,000,000,000 Time Theorems</button></td>
</tr>
</table>
<table class="table" id="studytable">
@ -1560,10 +1560,10 @@
<div id="You do know how these work, right?" class="achievement achievementlocked" style="background-image: url(images/s20.png)" ach-tooltip="You do know how these work, right?"><br></div>
</td>
<td>
<div id="s35" class="achievement achievementlocked" style="background-image: url(images/s21.png)" ach-tooltip="s35"><br></div>
<div id="Should we tell him about the buy max..." class="achievement achievementlocked" style="background-image: url(images/s21.png)" ach-tooltip="s35"><br></div>
</td>
<td>
<div id="s36" class="achievement achievementlocked" style="background-image: url(images/s22.png)" ach-tooltip="s36"><br></div>
<div id="Dip the antimatter" class="achievement achievementlocked" style="background-image: url(images/s22.png)" ach-tooltip="s36"><br></div>
</td>
<td>
<div id="s37" class="achievement achievementlocked" style="background-image: url(images/s23.png)" ach-tooltip="s37"><br></div>

View File

@ -123,8 +123,8 @@ const allAchievements = {
s32 : "Less than or equal to 0.001",
s33 : "A sound financial decision",
s34 : "You do know how these work, right?",
s35 : "s35",
s36 : "s36",
s35 : "Should we tell him about the buy max...",
s36 : "Dip the antimatter",
s37 : "s37",
s38 : "s38",
};
@ -149,8 +149,8 @@ const secretAchievementTooltips = {
s32 : "Get a fastest infinity or eternity time of less than or equal to 0.001 seconds.",
s33 : "Click on the donate link.",
s34 : "Respec with an empty study tree.",
s35 : "s35",
s36 : "s36",
s35 : "Buy single tickspeed 1,000,000 times.",
s36 : "Dip the antimatter",
s37 : "s37",
s38 : "s38",
};

View File

@ -149,6 +149,7 @@ function softReset(bulk) {
dimlife: player.dimlife,
dead: player.dead,
dilation: player.dilation,
why: player.why,
options: player.options
};
if (player.currentChallenge == "challenge10" || player.currentChallenge == "postc1") {

View File

@ -107,6 +107,7 @@ if (player.infinitied > 0 && !player.challenges.includes("challenge1")) player.c
if (player.timeDimension6 === undefined) player.timeDimension6 = {cost: new Decimal("1e2650"), amount: new Decimal(0), power: new Decimal(1), bought: 0 }
if (player.timeDimension7 === undefined) player.timeDimension7 = {cost: new Decimal("1e3000"), amount: new Decimal(0), power: new Decimal(1), bought: 0 }
if (player.timeDimension8 === undefined) player.timeDimension8 = {cost: new Decimal("1e3400"), amount: new Decimal(0), power: new Decimal(1), bought: 0 }
if (player.why === undefined) player.why = 0
setTheme(player.options.theme);
sliderText.textContent = "Update rate: " + player.options.updateRate + "ms";

View File

@ -61,6 +61,7 @@ function buyTickSpeed() {
player.tickspeed = player.tickspeed.times(getTickSpeedMultiplier());
if (player.challenges.includes("postc3") || player.currentChallenge == "postc3") player.postC3Reward = player.postC3Reward.times(1.05+(player.galaxies*0.005))
postc8Mult = new Decimal(1)
player.why = player.why + 1
return true;
}

View File

@ -266,6 +266,7 @@ var player = {
3: 0,
}
},
why: 0,
options: {
newsHidden: false,
notation: "Mixed scientific",
@ -1697,6 +1698,7 @@ function galaxyReset() {
dimlife: player.dimlife,
dead: player.dead,
dilation: player.dilation,
why: player.why,
options: player.options
};
@ -2757,138 +2759,139 @@ document.getElementById("bigcrunch").onclick = function () {
auto = autoS; //only allow autoing if prev crunch was autoed
autoS = true;
player = {
money: new Decimal(10),
tickSpeedCost: new Decimal(1000),
tickspeed: new Decimal(1000),
firstCost: new Decimal(10),
secondCost: new Decimal(100),
thirdCost: new Decimal(10000),
fourthCost: new Decimal(1000000),
fifthCost: new Decimal(1e9),
sixthCost: new Decimal(1e13),
seventhCost: new Decimal(1e18),
eightCost: new Decimal(1e24),
firstAmount: new Decimal(0),
secondAmount: new Decimal(0),
thirdAmount: new Decimal(0),
fourthAmount: new Decimal(0),
firstBought: 0,
secondBought: 0,
thirdBought: 0,
fourthBought: 0,
fifthAmount: new Decimal(0),
sixthAmount: new Decimal(0),
seventhAmount: new Decimal(0),
eightAmount: new Decimal(0),
fifthBought: 0,
sixthBought: 0,
seventhBought: 0,
eightBought: 0,
firstPow: new Decimal(1),
secondPow: new Decimal(1),
thirdPow: new Decimal(1),
fourthPow: new Decimal(1),
fifthPow: new Decimal(1),
sixthPow: new Decimal(1),
seventhPow: new Decimal(1),
eightPow: new Decimal(1),
sacrificed: new Decimal(0),
achievements: player.achievements,
challenges: player.challenges,
currentChallenge: player.currentChallenge,
infinityUpgrades: player.infinityUpgrades,
infinityPoints: player.infinityPoints,
infinitied: player.infinitied + infGain,
infinitiedBank: player.infinitiedBank,
totalTimePlayed: player.totalTimePlayed,
bestInfinityTime: Math.min(player.bestInfinityTime, player.thisInfinityTime),
thisInfinityTime: 0,
resets: 0,
galaxies: 0,
tickDecrease: 0.9,
totalmoney: player.totalmoney,
interval: null,
lastUpdate: player.lastUpdate,
achPow: player.achPow,
autobuyers: player.autobuyers,
costMultipliers: [new Decimal(1e3), new Decimal(1e4), new Decimal(1e5), new Decimal(1e6), new Decimal(1e8), new Decimal(1e10), new Decimal(1e12), new Decimal(1e15)],
tickspeedMultiplier: new Decimal(10),
chall2Pow: 1,
chall3Pow: new Decimal(0.01),
newsArray: player.newsArray,
matter: new Decimal(0),
chall11Pow: new Decimal(1),
partInfinityPoint: player.partInfinityPoint,
partInfinitied: player.partInfinitied,
break: player.break,
challengeTimes: player.challengeTimes,
infchallengeTimes: player.infchallengeTimes,
lastTenRuns: player.lastTenRuns,
lastTenEternities: player.lastTenEternities,
infMult: player.infMult,
infMultCost: player.infMultCost,
tickSpeedMultDecrease: player.tickSpeedMultDecrease,
tickSpeedMultDecreaseCost: player.tickSpeedMultDecreaseCost,
dimensionMultDecrease: player.dimensionMultDecrease,
dimensionMultDecreaseCost: player.dimensionMultDecreaseCost,
version: player.version,
postChallUnlocked: player.postChallUnlocked,
postC4Tier: 1,
postC3Reward: new Decimal(1),
overXGalaxies: player.overXGalaxies,
spreadingCancer: player.spreadingCancer,
infDimensionsUnlocked: player.infDimensionsUnlocked,
infinityPower: player.infinityPower,
infinityDimension1: player.infinityDimension1,
infinityDimension2: player.infinityDimension2,
infinityDimension3: player.infinityDimension3,
infinityDimension4: player.infinityDimension4,
infinityDimension5: player.infinityDimension5,
infinityDimension6: player.infinityDimension6,
infinityDimension7: player.infinityDimension7,
infinityDimension8: player.infinityDimension8,
infDimBuyers: player.infDimBuyers,
timeShards: player.timeShards,
tickThreshold: player.tickThreshold,
timeDimension1: player.timeDimension1,
timeDimension2: player.timeDimension2,
timeDimension3: player.timeDimension3,
timeDimension4: player.timeDimension4,
timeDimension5: player.timeDimension5,
timeDimension6: player.timeDimension6,
timeDimension7: player.timeDimension7,
timeDimension8: player.timeDimension8,
eternityPoints: player.eternityPoints,
eternities: player.eternities,
thisEternity: player.thisEternity,
bestEternity: player.bestEternity,
eternityUpgrades: player.eternityUpgrades,
epmult: player.epmult,
epmultCost: player.epmultCost,
totalTickGained: player.totalTickGained,
offlineProd: player.offlineProd,
offlineProdCost: player.offlineProdCost,
challengeTarget: player.challengeTarget,
autoSacrifice: player.autoSacrifice,
replicanti: player.replicanti,
timestudy: player.timestudy,
eternityChalls: player.eternityChalls,
eternityChallGoal: player.eternityChallGoal,
currentEternityChall: player.currentEternityChall,
eternityChallUnlocked: player.eternityChallUnlocked,
etercreq: player.etercreq,
autoIP: player.autoIP,
autoTime: player.autoTime,
infMultBuyer: player.infMultBuyer,
autoCrunchMode: player.autoCrunchMode,
respec: player.respec,
eternityBuyer: player.eternityBuyer,
eterc8ids: player.eterc8ids,
eterc8repl: player.eterc8repl,
dimlife: player.dimlife,
dead: player.dead,
dilation: player.dilation,
options: player.options
money: new Decimal(10),
tickSpeedCost: new Decimal(1000),
tickspeed: new Decimal(1000),
firstCost: new Decimal(10),
secondCost: new Decimal(100),
thirdCost: new Decimal(10000),
fourthCost: new Decimal(1000000),
fifthCost: new Decimal(1e9),
sixthCost: new Decimal(1e13),
seventhCost: new Decimal(1e18),
eightCost: new Decimal(1e24),
firstAmount: new Decimal(0),
secondAmount: new Decimal(0),
thirdAmount: new Decimal(0),
fourthAmount: new Decimal(0),
firstBought: 0,
secondBought: 0,
thirdBought: 0,
fourthBought: 0,
fifthAmount: new Decimal(0),
sixthAmount: new Decimal(0),
seventhAmount: new Decimal(0),
eightAmount: new Decimal(0),
fifthBought: 0,
sixthBought: 0,
seventhBought: 0,
eightBought: 0,
firstPow: new Decimal(1),
secondPow: new Decimal(1),
thirdPow: new Decimal(1),
fourthPow: new Decimal(1),
fifthPow: new Decimal(1),
sixthPow: new Decimal(1),
seventhPow: new Decimal(1),
eightPow: new Decimal(1),
sacrificed: new Decimal(0),
achievements: player.achievements,
challenges: player.challenges,
currentChallenge: player.currentChallenge,
infinityUpgrades: player.infinityUpgrades,
infinityPoints: player.infinityPoints,
infinitied: player.infinitied + infGain,
infinitiedBank: player.infinitiedBank,
totalTimePlayed: player.totalTimePlayed,
bestInfinityTime: Math.min(player.bestInfinityTime, player.thisInfinityTime),
thisInfinityTime: 0,
resets: 0,
galaxies: 0,
tickDecrease: 0.9,
totalmoney: player.totalmoney,
interval: null,
lastUpdate: player.lastUpdate,
achPow: player.achPow,
autobuyers: player.autobuyers,
costMultipliers: [new Decimal(1e3), new Decimal(1e4), new Decimal(1e5), new Decimal(1e6), new Decimal(1e8), new Decimal(1e10), new Decimal(1e12), new Decimal(1e15)],
tickspeedMultiplier: new Decimal(10),
chall2Pow: 1,
chall3Pow: new Decimal(0.01),
newsArray: player.newsArray,
matter: new Decimal(0),
chall11Pow: new Decimal(1),
partInfinityPoint: player.partInfinityPoint,
partInfinitied: player.partInfinitied,
break: player.break,
challengeTimes: player.challengeTimes,
infchallengeTimes: player.infchallengeTimes,
lastTenRuns: player.lastTenRuns,
lastTenEternities: player.lastTenEternities,
infMult: player.infMult,
infMultCost: player.infMultCost,
tickSpeedMultDecrease: player.tickSpeedMultDecrease,
tickSpeedMultDecreaseCost: player.tickSpeedMultDecreaseCost,
dimensionMultDecrease: player.dimensionMultDecrease,
dimensionMultDecreaseCost: player.dimensionMultDecreaseCost,
version: player.version,
postChallUnlocked: player.postChallUnlocked,
postC4Tier: 1,
postC3Reward: new Decimal(1),
overXGalaxies: player.overXGalaxies,
spreadingCancer: player.spreadingCancer,
infDimensionsUnlocked: player.infDimensionsUnlocked,
infinityPower: player.infinityPower,
infinityDimension1: player.infinityDimension1,
infinityDimension2: player.infinityDimension2,
infinityDimension3: player.infinityDimension3,
infinityDimension4: player.infinityDimension4,
infinityDimension5: player.infinityDimension5,
infinityDimension6: player.infinityDimension6,
infinityDimension7: player.infinityDimension7,
infinityDimension8: player.infinityDimension8,
infDimBuyers: player.infDimBuyers,
timeShards: player.timeShards,
tickThreshold: player.tickThreshold,
timeDimension1: player.timeDimension1,
timeDimension2: player.timeDimension2,
timeDimension3: player.timeDimension3,
timeDimension4: player.timeDimension4,
timeDimension5: player.timeDimension5,
timeDimension6: player.timeDimension6,
timeDimension7: player.timeDimension7,
timeDimension8: player.timeDimension8,
eternityPoints: player.eternityPoints,
eternities: player.eternities,
thisEternity: player.thisEternity,
bestEternity: player.bestEternity,
eternityUpgrades: player.eternityUpgrades,
epmult: player.epmult,
epmultCost: player.epmultCost,
totalTickGained: player.totalTickGained,
offlineProd: player.offlineProd,
offlineProdCost: player.offlineProdCost,
challengeTarget: player.challengeTarget,
autoSacrifice: player.autoSacrifice,
replicanti: player.replicanti,
timestudy: player.timestudy,
eternityChalls: player.eternityChalls,
eternityChallGoal: player.eternityChallGoal,
currentEternityChall: player.currentEternityChall,
eternityChallUnlocked: player.eternityChallUnlocked,
etercreq: player.etercreq,
autoIP: player.autoIP,
autoTime: player.autoTime,
infMultBuyer: player.infMultBuyer,
autoCrunchMode: player.autoCrunchMode,
respec: player.respec,
eternityBuyer: player.eternityBuyer,
eterc8ids: player.eterc8ids,
eterc8repl: player.eterc8repl,
dimlife: player.dimlife,
dead: player.dead,
dilation: player.dilation,
why: player.why,
options: player.options
};
if (player.bestInfinityTime <= 0.01) giveAchievement("Less than or equal to 0.001");
@ -3266,6 +3269,7 @@ function eternity(force) {
upgrades: player.dilation.upgrades,
rebuyables: player.dilation.rebuyables
},
why: player.why,
options: player.options
};
if (player.respec) respecTimeStudies()
@ -3507,6 +3511,7 @@ function startChallenge(name, target) {
dimlife: player.dimlife,
dead: player.dead,
dilation: player.dilation,
why: player.why,
options: player.options
};
if (player.currentChallenge == "challenge10" || player.currentChallenge == "postc1") {
@ -4067,6 +4072,7 @@ function startEternityChallenge(name, startgoal, goalIncrease) {
upgrades: player.dilation.upgrades,
rebuyables: player.dilation.rebuyables
},
why: player.why,
options: player.options
};
@ -4595,6 +4601,8 @@ setInterval(function() {
if (player.replicanti.amount.gt(new Decimal("1e20000"))) giveAchievement("When will it be enough?")
if (player.tickspeed.e < -8296272) giveAchievement("Faster than a potato^345678")
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 >= 1e6) giveAchievement("Should we tell him about the buy max...")
if ( Math.max(document.documentElement.clientHeight, window.innerHeight || 0) <= 150 ) giveAchievement("Dip the antimatter")
}, 1000)