implement first 2 5th row upgrades

This commit is contained in:
IvarK 2018-10-03 17:05:34 +03:00
parent 6e3b90a3fc
commit 8d5a16251d
5 changed files with 19 additions and 9 deletions

View File

@ -2448,11 +2448,11 @@
<td><div class="realityUpgrade" onclick="buyRealityUpg(20)" id="rupg20" style="font-size: 0.85em;"><b>Requires: 2 years total play time</b><br>You can have 2 wormholes<br>Cost: 1500 RM</div></td>
</tr>
<tr>
<td><div class="realityUpgrade" onclick="buyRealityUpg(21)" id="rupg21" style="font-size: 0.85em;"><b>Requires: x replicanti</b><br>You can sacrifice dilation, replication and infinity glyphs<br>Cost: 10,000 RM</div></td>
<td><div class="realityUpgrade" onclick="buyRealityUpg(22)" id="rupg22"><b>Requires: x DT</b><br>Some time based multiplier to TD<br>Cost: 10,000 RM</div></td>
<td><div class="realityUpgrade" onclick="buyRealityUpg(23)" id="rupg23"><b>Requires: dunno</b><br>Eternity multipliers affect eternity generation<br>Cost: 10,000 RM</div></td>
<td><div class="realityUpgrade" onclick="buyRealityUpg(24)" id="rupg24"><b>Requires: eternity for x RM without glyphs</b><br>Gain another glyph slot<br>Cost: 10,000 RM</div></td>
<td><div class="realityUpgrade" onclick="buyRealityUpg(25)" id="rupg25" style="font-size: 0.85em;"><b>Requires: dunno</b><br>Dunno<br>Cost: 10,000 RM</div></td>
<td><div class="realityUpgrade" onclick="buyRealityUpg(21)" id="rupg21" style="font-size: 0.85em;"><b>Requires: 1e75,000 replicanti</b><br>You can sacrifice dilation, replication and infinity glyphs<br>Cost: 100,000 RM</div></td>
<td><div class="realityUpgrade" onclick="buyRealityUpg(22)" id="rupg22"><b>Requires: 1e85 DT</b><br>Some time based multiplier to TD, Currently Xx<br>Cost: 100,000 RM</div></td>
<td><div class="realityUpgrade" onclick="buyRealityUpg(23)" id="rupg23"><b>Requires: dunno</b><br>Eternity multipliers affect eternity generation<br>Cost: 100,000 RM</div></td>
<td><div class="realityUpgrade" onclick="buyRealityUpg(24)" id="rupg24"><b>Requires: reality for x RM without glyphs</b><br>Gain another glyph slot<br>Cost: 100,000 RM</div></td>
<td><div class="realityUpgrade" onclick="buyRealityUpg(25)" id="rupg25" style="font-size: 0.85em;"><b>Requires: dunno</b><br>Dunno<br>Cost: 100,000 RM</div></td>
</tr>
</table>
</div>

View File

@ -126,7 +126,7 @@ function reality(force) {
player.autoIP = new Decimal(0);
player.autoTime = 1e300;
player.infMultBuyer = player.reality.upg.includes(10) ? player.infMultBuyer : false;
player.autoCrunchMode = "amount";
player.autoCrunchMode = player.reality.upg.includes(10) ? player.autoCrunchMode : "amount";
player.respec = false;
player.eterc8ids = 50;
player.eterc8repl = 40;

View File

@ -506,6 +506,11 @@ function deleteGlyph(id) {
return;
}
if (player.reality.upg.includes(21)) {
sacrificeGlyph(n)
return;
}
if (controlDown || confirm("Do you really want to delete this glyph?")) {
var inv = player.reality.glyphs.inventory
@ -582,7 +587,7 @@ function drop(ev) {
mouseOn = $("document")
}
const REALITY_UPGRADE_COSTS = [null, 1, 2, 2, 3, 4, 15, 15, 15, 15, 15, 50, 50, 50, 50, 50, 1500, 1500, 1500, 1500, 1500]
const REALITY_UPGRADE_COSTS = [null, 1, 2, 2, 3, 4, 15, 15, 15, 15, 15, 50, 50, 50, 50, 50, 1500, 1500, 1500, 1500, 1500, 1e5, 1e5, 1e5, 1e5, 1e5]
const REALITY_UPGRADE_COST_MULTS = [null, 30, 30, 30, 30, 50,]
function canBuyRealityUpg(id) {
@ -651,6 +656,7 @@ function updateRealityUpgrades() {
$("#rupg5").html("You gain 5 times more infinities<br>Currently: "+ row1Mults[5] +"x<br>Cost: "+row1Costs[5]+" RM")
$("#rupg12").html("<b>Requires: 1e70 EP without EC1</b><br>EP mult based on realities and TT, Currently "+shorten(Decimal.max(Decimal.pow(Math.max(player.timestudy.theorem - 1e3, 2), Math.log2(player.realities)), 1))+"x<br>Cost: 50 RM")
$("#rupg15").html("<b>Requires: Reach 1e10 EP without EP multipliers (test)</b><br>Multiply TP gain based on EP mult, Currently "+shorten(Math.max(Math.sqrt(Decimal.log10(player.epmult)) / 3, 1))+"x<br>Cost: 50 RM")
$("#rupg22").html("<b>Requires: 1e85 DT</b><br>Exponential bonus to TD based on days spent in this reality, Currently "+shorten(Decimal.pow(8, Math.pow(player.thisReality / (1000 * 60 * 60 * 24), 0.4)))+"x<br>Cost: 100,000 RM")
}
$(".tooltip").parent().mousemove(function(e) {

View File

@ -36,6 +36,8 @@ function getTimeDimensionPower(tier) {
ret = ret.times(replmult.pow(0.1))
}
if (player.reality.upg.includes(22)) ret = ret.times(Decimal.pow(8, Math.pow(player.thisReality / (1000 * 60 * 60 * 24), 0.4)))
if (ret.lt(0)) {
ret = new Decimal(0)
}

View File

@ -2452,6 +2452,8 @@ setInterval(function() {
updateRealityUpgrades()
if (player.totalTimePlayed > 1000 * 60 * 60 * 24 * 365 * 2) unlockRealityUpgrade(20)
if (player.replicanti.amount.gte(new Decimal("1e75000"))) unlockRealityUpgrade(21)
if (player.dilation.dilatedTime.gte(1e85)) unlockRealityUpgrade(22)
}, 1000)
@ -2483,12 +2485,12 @@ function getGameSpeedupFactor(takeGlyphsIntoAccount = true) {
factor *= glyph.effects.speed
}
}
// TODO, REMOVE
if (player.wormhole[0] !== undefined) {
if (player.wormhole[0].active && !player.wormholePause) factor *= player.wormhole[0].power
if (player.wormhole[0].active && player.wormhole[1].active && !player.wormholePause) factor *= player.wormhole[1].power
if (player.wormhole[0].active && player.wormhole[1].active && player.wormhole[2].active && !player.wormholePause) factor *= player.wormhole[2].power
} else dev.updateTestSave()
} else dev.updateTestSave() // TODO, REMOVE
return factor;
}