pusherino

This commit is contained in:
IvarK 2017-10-03 21:27:28 +03:00
parent 7fa9ee4839
commit 5df8d15dcd
2 changed files with 18 additions and 14 deletions

View File

@ -590,7 +590,7 @@
<button class="storebtn" style="font-size: 100%; width:200px" onclick="exitChallenge()">Exit Challenge</button><br><br>
<tr>
<td><button class="secondarytabbtn" onclick="showChallengesTab('challenges')">Challenges</button><td>
<td><button class="secondarytabbtn" onclick="showChallengesTab('breakchallenges')">Break challenges</button><td>
<td><button class="secondarytabbtn" onclick="showChallengesTab('breakchallenges')">Infinity Challenges</button><td>
</tr>
<div id="challenges" class="challengeTab">
<table class="table" style="margin: 0 auto">
@ -787,7 +787,7 @@
<button id="postc1" class="challengesbtn" onclick="startChallenge('postc1', new Decimal('1e850'))">Start</button>
<br>
<span>Goal: 1e850</span><br>
<span>Reward: You get to fuck ass</span>
<span>Reward: 1.5x on all Infinity Dimensions for each Infinity Challenge completed</span>
</div>
</div>
</td>
@ -826,9 +826,9 @@
<br>
<br>
<div class="outer">
<button id="postc4" class="challengesbtn" onclick="startChallenge('postc4', new Decimal('1e7000'))">Start</button>
<button id="postc4" class="challengesbtn" onclick="startChallenge('postc4', new Decimal('1e13000'))">Start</button>
<br>
<span>Goal: 1e7000</span><br>
<span>Goal: 1e13000</span><br>
<span>Reward: All normal dimension multipliers become multiplier^1.2</span>
</div>
</div>

View File

@ -647,8 +647,7 @@ function getDimensionFinalMultiplier(tier) {
}
multiplier = multiplier.times(player.achPow);
if (player.currentChallenge == "postc3") multiplier = multiplier.times(Decimal.max(Decimal.pow(player.infinityPower, 14), 1))
else multiplier = multiplier.times(Decimal.max(Decimal.pow(player.infinityPower, 7), 1))
multiplier = multiplier.times(Decimal.max(Decimal.pow(player.infinityPower, 7), 1))
if (player.infinityUpgrades.includes("totalMult")) multiplier = multiplier.times(totalMult)
if (player.infinityUpgrades.includes("currentMult")) multiplier = multiplier.times(currentMult)
@ -679,7 +678,7 @@ function getDimensionFinalMultiplier(tier) {
multiplier = multiplier.times(player.postC3Reward)
if (player.challenges.includes("postc4")) return Decimal.pow(multiplier, 1.2);
if (player.challenges.includes("postc4")) return Decimal.pow(multiplier, 1.1);
return multiplier;
}
@ -989,7 +988,7 @@ function getInfinityDimensionRateOfChange(tier) {
function updateInfinityDimensions() {
for (let tier = 1; tier <= 4; ++tier) {
document.getElementById("infD"+tier).innerHTML = DISPLAY_NAMES[tier] + " Infinity Dimension x" + shortenDimensions(player["infinityDimension"+tier].power);
document.getElementById("infD"+tier).innerHTML = DISPLAY_NAMES[tier] + " Infinity Dimension x" + shortenDimensions(player["infinityDimension"+tier].power).times(infDimPow);
document.getElementById("infAmount"+tier).innerHTML = getInfinityDimensionDescription(tier);
}
@ -1615,12 +1614,12 @@ function buyManyInfinityDimension(tier) {
var infDimPow = 1
function getInfinityDimensionProduction(tier) {
var dim = player["infinityDimension"+tier]
return dim.amount.times(dim.power)
return dim.amount.times(dim.power).times(infDimPow)
}
@ -2559,7 +2558,7 @@ function resetDimensions() {
function calcSacrificeBoost() {
if (player.firstAmount == 0) return new Decimal(1);
if (player.challenges.includes("postc2")) {
return Decimal.max(Decimal.pow(player.firstAmount, 0.05).dividedBy(Decimal.max(Decimal.pow(player.sacrificed, 0.05), 1)), 1)
return Decimal.max(Decimal.pow(player.firstAmount, 0.01).dividedBy(Decimal.max(Decimal.pow(player.sacrificed, 0.01), 1)), 1)
}
if (player.currentChallenge != "challenge11") {
var sacrificePow=2;
@ -3351,8 +3350,7 @@ document.getElementById("quickReset").onclick = function () {
function updateInfPower() {
document.getElementById("infPowAmount").innerHTML = shortenMoney(player.infinityPower)
if (player.currentChallenge == "postc3") document.getElementById("infDimMultAmount").innerHTML = shortenMoney(Decimal.pow(player.infinityPower, 14))
else document.getElementById("infDimMultAmount").innerHTML = shortenMoney(Decimal.pow(player.infinityPower, 7))
document.getElementById("infDimMultAmount").innerHTML = shortenMoney(Decimal.pow(player.infinityPower, 7))
document.getElementById("infPowPerSec").innerHTML = "You are getting " +shortenDimensions(getInfinityDimensionProduction(1))+" Infinity Power per second."
}
@ -3439,6 +3437,10 @@ setInterval(function() {
player.postChallUnlocked += 1
updateChallenges()
}
infDimPow = 1
for (var i=0; i < player.challenges; i++) {
if (player.challenges[i].includes("post")) infDimPow *= 1.5
}
}, 1000)
@ -4098,7 +4100,9 @@ function scrollNextMessage() {
if (!player.options.newsHidden) {
if (!player.newsArray.includes(msg.index)) player.newsArray.push(msg.index);
if (player.newsArray.length>=50 && !player.achievements.includes("Fake News")) giveAchievement("Fake News")
}
}
if (player.achievements.includes("Fake News")) player.newsArray = []
//set the transition duration