From 510cf78da3aeb93951a6d93a976c640f470cb6cf Mon Sep 17 00:00:00 2001 From: Jacorb90 <39597610+Jacorb90@users.noreply.github.com> Date: Mon, 7 Sep 2020 12:33:50 -0400 Subject: [PATCH] Beta v1.2 Alpha 10 --- index.html | 7 +++++++ js/game.js | 54 ++++++++++++++++++++++++++++++++++++------------------ style.css | 16 ++++++++-------- 3 files changed, 51 insertions(+), 26 deletions(-) diff --git a/index.html b/index.html index 5359b5a..3ec9ab3 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,12 @@


+

Beta v1.2 Alpha 10

+

Beta v1.2 Alpha 9


+ Note: Activating a Spell uses 1 Magic.

diff --git a/js/game.js b/js/game.js index 472d39e..c389500 100644 --- a/js/game.js +++ b/js/game.js @@ -292,11 +292,15 @@ const LAYER_EFFS = { }, hb: function() { return Decimal.pow(Decimal.add(1.6, addToHBBase()), player.hb.points.pow(getHyperBoosterExp()).times(getHyperBoosterPow())) }, ss: function() { return player.ss.points.pow(2.5).times(getSubspaceGainMult()) }, - ba: function() { return { - power: player.ba.points.pow(0.2).pow(tmp.baExp ? tmp.baExp : 1).pow(player.ba.upgrades.includes(41)?2:1), - pos: player.ba.points.pow(0.7).pow(tmp.baExp ? tmp.baExp : 1), - neg: player.ba.points.pow(0.65).times(0.4).pow(tmp.baExp ? tmp.baExp : 1), - }}, + ba: function() { + let points1 = player.ba.points + if (points1.gte(1e12)) points1 = points1.log10().pow(2).times(1e12/144).min(points1) + return { + power: points1.pow(0.2).pow(tmp.baExp ? tmp.baExp : 1).pow(player.ba.upgrades.includes(41)?2:1), + pos: player.ba.points.pow(0.7).pow(tmp.baExp ? tmp.baExp : 1), + neg: player.ba.points.pow(0.65).times(0.4).pow(tmp.baExp ? tmp.baExp : 1), + } + }, } const LAYER_UPGS = { @@ -528,7 +532,7 @@ const LAYER_UPGS = { }, 34: { desc: "Generators are stronger based on their amount.", - cost: new Decimal(1070), + cost: new Decimal(1068), unl: function() { return player.ss.upgrades.includes(21) }, currently: function() { return player.g.points.plus(1).log10().plus(1).log10().plus(1).sqrt() }, effDisp: function(x) { return format(x.sub(1).times(100))+"% stronger" }, @@ -1207,14 +1211,16 @@ const LAYER_UPGS = { unl: function() { return player.ba.upgrades.includes(33)&&player.ba.upgrades.includes(34) }, }, 42: { - desc: "???", - cost: new Decimal(1/0), - unl: function() { return false }, + desc: "The Space Building 1 effect is stronger based on your Space Building 1 amount.", + cost: new Decimal(3e11), + unl: function() { return player.ba.upgrades.includes(33)&&player.ba.upgrades.includes(34) }, + currently: function() { return player.s.buildings[1].plus(1).pow(0.8) }, + effDisp: function(x) { return "^"+format(x) }, }, 43: { - desc: "???", - cost: new Decimal(1/0), - unl: function() { return false }, + desc: "The post-25 Extra Time Capsule cost scaling is disabled.", + cost: new Decimal(1e12), + unl: function() { return player.ba.upgrades.includes(41)||player.ba.upgrades.includes(42) }, }, 44: { desc: "???", @@ -1670,6 +1676,7 @@ function getResetGain(layer) { } if (tmp.layerAmt[layer].lt(tmp.layerReqs[layer])) return new Decimal(0) let gain = tmp.layerAmt[layer].div(tmp.layerReqs[layer]).pow(LAYER_EXP[layer]).times(tmp.gainMults[layer]).pow(getGainExp(layer)) + if (gain.gte("e1e7")) gain = gain.sqrt().times("e5e6") return gain.floor().max(0); } @@ -1683,7 +1690,9 @@ function getNextAt(layer) { if (LAYER_RES_CEIL.includes(layer)) cost = cost.ceil() return cost; } else { - let next = tmp.resetGain[layer].plus(1).root(getGainExp(layer)).div(tmp.gainMults[layer]).root(LAYER_EXP[layer]).times(tmp.layerReqs[layer]).max(tmp.layerReqs[layer]) + let next = tmp.resetGain[layer].plus(1) + if (next.gte("e1e7")) next = next.div("e5e6").pow(2) + next = next.root(getGainExp(layer)).div(tmp.gainMults[layer]).root(LAYER_EXP[layer]).times(tmp.layerReqs[layer]).max(tmp.layerReqs[layer]) if (LAYER_RES_CEIL.includes(layer)) next = next.ceil() return next; } @@ -2135,7 +2144,7 @@ function getTimeEnergyLimitMult() { function getExtCapsuleCost() { let amt = player.t.extCapsules - if (amt.gte(25)) amt = amt.pow(2).div(25) + if (amt.gte(25) && !player.ba.upgrades.includes(43)) amt = amt.pow(2).div(25) let cost = amt.times(0.4).pow(1.2).plus(1).times(10) return cost.floor() } @@ -2150,7 +2159,7 @@ function buyExtCapsule() { function maxExtTimeCapsules() { let target = player.b.points.plus(1).div(10).sub(1).root(1.2).div(0.4) - if (target.gte(25)) target = target.times(25).sqrt() + if (target.gte(25)&&!player.ba.upgrades.includes(43)) target = target.times(25).sqrt() target = target.plus(1).floor().max(0) player.t.extCapsules = player.t.extCapsules.max(target) } @@ -2220,9 +2229,12 @@ function getSpaceBuildingEff(x) { if (tmp.sbUnl