mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-01-19 03:51:40 +00:00
v1.2 Beta 1.5
- Rebalanced Stuff
This commit is contained in:
parent
9339e01238
commit
4cbc7ef9ca
2 changed files with 26 additions and 16 deletions
|
@ -335,7 +335,9 @@
|
||||||
<br>
|
<br>
|
||||||
<h3>{{VERSION.withName}}</h3>
|
<h3>{{VERSION.withName}}</h3>
|
||||||
<br>
|
<br>
|
||||||
Made by Jacorb and Aarex
|
Made by Jacorb
|
||||||
|
<br>
|
||||||
|
With help by Aarex (made all of v1.1, planned most of v1.2)
|
||||||
<br>
|
<br>
|
||||||
Idea by papyrus (on discord)
|
Idea by papyrus (on discord)
|
||||||
<br><br>
|
<br><br>
|
||||||
|
@ -344,7 +346,7 @@
|
||||||
<a class="link" href="http://discord.gg/wwQfgPa" target="_blank">Jacorb's Discord</a><br>
|
<a class="link" href="http://discord.gg/wwQfgPa" target="_blank">Jacorb's Discord</a><br>
|
||||||
<a class="link" href="http://aarextiaokhiao.github.io/" target="_blank">Aarex's Home</a>
|
<a class="link" href="http://aarextiaokhiao.github.io/" target="_blank">Aarex's Home</a>
|
||||||
<br>
|
<br>
|
||||||
Note by Jacorb: If anyone wishes to make a mod of this game, that is perfectly fine with me, just make sure to name it something different (ex: Prestige Tree NG+) and to let me know on <a href="https://discord.gg/wwQfgPa" target="_blank">my discord</a>.
|
Note: If anyone wishes to make a mod of this game, that is perfectly fine with me, just make sure to name it something different (ex: Prestige Tree NG+) and to let me know on <a href="https://discord.gg/wwQfgPa" target="_blank">my discord</a>.
|
||||||
<br><br>
|
<br><br>
|
||||||
Time Played: {{ formatTime(player.timePlayed) }}<br><br>
|
Time Played: {{ formatTime(player.timePlayed) }}<br><br>
|
||||||
<h3>Hotkeys</h3><br>
|
<h3>Hotkeys</h3><br>
|
||||||
|
@ -679,7 +681,7 @@
|
||||||
<tr v-if="milestoneShown(player.mb.total.gte(3))"><td v-bind:class="{ milestone: player.mb.total.lt(3), milestoneDone: player.mb.total.gte(3) }"><h3>3 Total Mastery Bricks</h3><br>Keep Row 6 Upgrades on Row 7 resets, and gain 100% of Life Essence gain every second.</td></tr>
|
<tr v-if="milestoneShown(player.mb.total.gte(3))"><td v-bind:class="{ milestone: player.mb.total.lt(3), milestoneDone: player.mb.total.gte(3) }"><h3>3 Total Mastery Bricks</h3><br>Keep Row 6 Upgrades on Row 7 resets, and gain 100% of Life Essence gain every second.</td></tr>
|
||||||
<tr v-if="milestoneShown(player.mb.total.gte(5))"><td v-bind:class="{ milestone: player.mb.total.lt(5), milestoneDone: player.mb.total.gte(5) }"><h3>5 Total Mastery Bricks</h3><br>Keep Imperium Buildings on Row 7 resets, and gain 100% of Hyperspace Energy gain every second.</td></tr>
|
<tr v-if="milestoneShown(player.mb.total.gte(5))"><td v-bind:class="{ milestone: player.mb.total.lt(5), milestoneDone: player.mb.total.gte(5) }"><h3>5 Total Mastery Bricks</h3><br>Keep Imperium Buildings on Row 7 resets, and gain 100% of Hyperspace Energy gain every second.</td></tr>
|
||||||
<tr v-if="milestoneShown(player.mb.total.gte(8))"><td v-bind:class="{ milestone: player.mb.total.lt(8), milestoneDone: player.mb.total.gte(8) }"><h3>8 Total Mastery Bricks</h3><br>Keep Hyperspace and Super-Upgrades on Row 7 resets.</td></tr>
|
<tr v-if="milestoneShown(player.mb.total.gte(8))"><td v-bind:class="{ milestone: player.mb.total.lt(8), milestoneDone: player.mb.total.gte(8) }"><h3>8 Total Mastery Bricks</h3><br>Keep Hyperspace and Super-Upgrades on Row 7 resets.</td></tr>
|
||||||
<tr v-if="milestoneShown(player.mb.total.gte(12), true)"><td v-bind:class="{ milestone: player.mb.total.lt(12), milestoneDone: player.mb.total.gte(12) }"><h3>12 Total Mastery Bricks</h3><br>Automate Imperium Bricks, and Imperium resets nothing. <button v-if="player.mb.total.gte(12)" class="smallUpg can i" onclick="toggleAuto('i')">{{player.i.auto?"ON":"OFF"}}</button></td></tr>
|
<tr v-if="milestoneShown(player.mb.total.gte(10), true)"><td v-bind:class="{ milestone: player.mb.total.lt(10), milestoneDone: player.mb.total.gte(10) }"><h3>10 Total Mastery Bricks</h3><br>Automate Imperium Bricks, Imperium resets nothing, and gain 100% of Super-Prestige Point gain on reset. <button v-if="player.mb.total.gte(10)" class="smallUpg can i" onclick="toggleAuto('i')">{{player.i.auto?"ON":"OFF"}}</button></td></tr>
|
||||||
</table><br><br>
|
</table><br><br>
|
||||||
Note: Buying a Mastery Building makes all others more expensive<br><br>
|
Note: Buying a Mastery Building makes all others more expensive<br><br>
|
||||||
<button v-on:click="MASTERY.respec()" v-bind:class="{ longUpg: true, mb: true, can: player.mb.unl, locked: !player.mb.unl }">Respec Mastery Buildings</button><br>
|
<button v-on:click="MASTERY.respec()" v-bind:class="{ longUpg: true, mb: true, can: player.mb.unl, locked: !player.mb.unl }">Respec Mastery Buildings</button><br>
|
||||||
|
|
34
js/game.js
34
js/game.js
|
@ -267,7 +267,7 @@ const LAYER_REQS = {
|
||||||
hs: new Decimal(725),
|
hs: new Decimal(725),
|
||||||
i: new Decimal("1e285"),
|
i: new Decimal("1e285"),
|
||||||
mb: new Decimal(29),
|
mb: new Decimal(29),
|
||||||
ge: new Decimal(1/0),
|
ge: new Decimal(1e50),
|
||||||
ma: new Decimal(1/0),
|
ma: new Decimal(1/0),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -359,9 +359,11 @@ const LAYER_BASE = {
|
||||||
ss: new Decimal(1.15),
|
ss: new Decimal(1.15),
|
||||||
ps: new Decimal("1e250"),
|
ps: new Decimal("1e250"),
|
||||||
i: new Decimal("1e20"),
|
i: new Decimal("1e20"),
|
||||||
mb: new Decimal(1.1),
|
mb: new Decimal(1.033),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const LAYER_USE_TOTAL = ["mb"]
|
||||||
|
|
||||||
const LAYER_ROW = {
|
const LAYER_ROW = {
|
||||||
p: 0,
|
p: 0,
|
||||||
b: 1,
|
b: 1,
|
||||||
|
@ -1759,9 +1761,11 @@ const LAYER_UPGS = {
|
||||||
unl() { return player.mb.unl&&player.sp.upgrades.includes(53) },
|
unl() { return player.mb.unl&&player.sp.upgrades.includes(53) },
|
||||||
},
|
},
|
||||||
55: {
|
55: {
|
||||||
desc: "???",
|
desc: "Imperium Bricks & Hyperspace Energy boost Super-Prestige Point gain.",
|
||||||
cost: new Decimal(1/0),
|
cost: new Decimal(2.5e41),
|
||||||
unl() { return false },
|
unl() { return player.mb.unl&&player.sp.upgrades.includes(54) },
|
||||||
|
currently() { return player.hs.points.plus(1).pow(0.02).times(Decimal.pow(2, player.i.points)) },
|
||||||
|
effDisp(x) { return format(x)+"x" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
ge: {
|
ge: {
|
||||||
|
@ -2120,10 +2124,11 @@ function format(decimal, precision=3) {
|
||||||
}
|
}
|
||||||
if (decimal.sign<0) return "-"+format(decimal.neg(), precision)
|
if (decimal.sign<0) return "-"+format(decimal.neg(), precision)
|
||||||
if (decimal.mag == Number.POSITIVE_INFINITY) return "Infinity"
|
if (decimal.mag == Number.POSITIVE_INFINITY) return "Infinity"
|
||||||
if (decimal.gte("eeee1000")) {
|
if (decimal.gte("eeee10")) {
|
||||||
var slog = decimal.slog()
|
var slog = decimal.slog()
|
||||||
if (slog.gte(1e6)) return "F" + format(slog.floor())
|
if (slog.gte(1e9)) return "10^^" + format(slog.floor())
|
||||||
else return Decimal.pow(10, slog.sub(slog.floor())).toStringWithDecimalPlaces(3) + "F" + commaFormat(slog.floor(), 0)
|
else if (slog.gte(1000)) return "10^^"+commaFormat(slog, 0)
|
||||||
|
else return "10^^" + commaFormat(slog, 3)
|
||||||
} else if (decimal.gte("1e1000")) return "e"+formatWhole(decimal.log10())
|
} else if (decimal.gte("1e1000")) return "e"+formatWhole(decimal.log10())
|
||||||
else if (decimal.gte(1e9)) return exponentialFormat(decimal, precision)
|
else if (decimal.gte(1e9)) return exponentialFormat(decimal, precision)
|
||||||
else if (decimal.gte(1e3)) return commaFormat(decimal, 0)
|
else if (decimal.gte(1e3)) return commaFormat(decimal, 0)
|
||||||
|
@ -2308,6 +2313,7 @@ function getLayerGainMult(layer) {
|
||||||
case "sp":
|
case "sp":
|
||||||
if (player.sp.upgrades.includes(24)) mult = mult.times(LAYER_UPGS.sp[24].currently())
|
if (player.sp.upgrades.includes(24)) mult = mult.times(LAYER_UPGS.sp[24].currently())
|
||||||
if (player.sp.upgrades.includes(33)) mult = mult.times(LAYER_UPGS.sp[33].currently())
|
if (player.sp.upgrades.includes(33)) mult = mult.times(LAYER_UPGS.sp[33].currently())
|
||||||
|
if (player.sp.upgrades.includes(55)) mult = mult.times(LAYER_UPGS.sp[55].currently())
|
||||||
if (spellActive(9)) mult = mult.times(tmp.spellEffs[9]);
|
if (spellActive(9)) mult = mult.times(tmp.spellEffs[9]);
|
||||||
break;
|
break;
|
||||||
case "l":
|
case "l":
|
||||||
|
@ -2356,7 +2362,7 @@ function getResetGain(layer) {
|
||||||
}
|
}
|
||||||
if (gain.gte(1225)) gain = gain.times(Decimal.pow(1225, 9)).pow(0.1)
|
if (gain.gte(1225)) gain = gain.times(Decimal.pow(1225, 9)).pow(0.1)
|
||||||
}
|
}
|
||||||
return gain.floor().sub(player[layer].points).add(1).max(1);
|
return gain.floor().sub(player[layer][LAYER_USE_TOTAL.includes(layer)?"total":"points"]).add(1).max(1);
|
||||||
} else {
|
} else {
|
||||||
if (tmp.layerAmt[layer].lt(tmp.layerReqs[layer])) return new Decimal(0)
|
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(tmp.gainExp[layer])
|
let gain = tmp.layerAmt[layer].div(tmp.layerReqs[layer]).pow(LAYER_EXP[layer]).times(tmp.gainMults[layer]).pow(tmp.gainExp[layer])
|
||||||
|
@ -2369,7 +2375,7 @@ function getNextAt(layer, disp=false) {
|
||||||
if (tmp.gainExp[layer].eq(0)) return new Decimal(1/0)
|
if (tmp.gainExp[layer].eq(0)) return new Decimal(1/0)
|
||||||
if (LAYER_TYPE[layer]=="static") {
|
if (LAYER_TYPE[layer]=="static") {
|
||||||
if (!canBuyMax(layer)) disp = false
|
if (!canBuyMax(layer)) disp = false
|
||||||
let amt = player[layer].points.plus((disp&&tmp.layerAmt[layer].gte(tmp.nextAt[layer]))?tmp.resetGain[layer]:0)
|
let amt = player[layer][LAYER_USE_TOTAL.includes(layer)?"total":"points"].plus((disp&&tmp.layerAmt[layer].gte(tmp.nextAt[layer]))?tmp.resetGain[layer]:0)
|
||||||
if ((LAYER_ROW[layer] < 4 && layer != "hb") || layer == "ps") {
|
if ((LAYER_ROW[layer] < 4 && layer != "hb") || layer == "ps") {
|
||||||
if (amt.gte(1225)) amt = amt.pow(10).div(Decimal.pow(1225, 9))
|
if (amt.gte(1225)) amt = amt.pow(10).div(Decimal.pow(1225, 9))
|
||||||
if (amt.gte(12)) {
|
if (amt.gte(12)) {
|
||||||
|
@ -2677,6 +2683,7 @@ function rowReset(row, layer) {
|
||||||
}
|
}
|
||||||
player.i = {
|
player.i = {
|
||||||
unl: player.i.unl,
|
unl: player.i.unl,
|
||||||
|
auto: player.i.auto,
|
||||||
points: new Decimal(0),
|
points: new Decimal(0),
|
||||||
best: (keepRow6Milestones||keepRow6) ? player.i.best : new Decimal(0),
|
best: (keepRow6Milestones||keepRow6) ? player.i.best : new Decimal(0),
|
||||||
lifeBricks: new Decimal(0),
|
lifeBricks: new Decimal(0),
|
||||||
|
@ -2728,7 +2735,7 @@ function doReset(layer, force=false) {
|
||||||
if ((layer=="t"&&player.h.best.gte(25))||(layer=="s"&&player.q.best.gte(25))||(layer=="sb"&&player.h.best.gte(2500))||(layer=="sg"&&player.sg.best.gte(1))) return;
|
if ((layer=="t"&&player.h.best.gte(25))||(layer=="s"&&player.q.best.gte(25))||(layer=="sb"&&player.h.best.gte(2500))||(layer=="sg"&&player.sg.best.gte(1))) return;
|
||||||
if ((layer=="hb"&&player.ba.best.gte(8))||(layer=="ss"&&player.ba.best.gte(8))) return;
|
if ((layer=="hb"&&player.ba.best.gte(8))||(layer=="ss"&&player.ba.best.gte(8))) return;
|
||||||
if (layer=="ps"&&player.ps.best.gte(5)) return;
|
if (layer=="ps"&&player.ps.best.gte(5)) return;
|
||||||
if (layer=="i"&&player.mb.total.gte(12)&&!force) return;
|
if (layer=="i"&&player.mb.total.gte(10)&&!force) return;
|
||||||
let row = LAYER_ROW[layer]
|
let row = LAYER_ROW[layer]
|
||||||
|
|
||||||
var layersWithChalls = Object.keys(LAYER_CHALLS)
|
var layersWithChalls = Object.keys(LAYER_CHALLS)
|
||||||
|
@ -3710,7 +3717,7 @@ const SPELL_BASE = {
|
||||||
2: 1.1,
|
2: 1.1,
|
||||||
3: 1.04,
|
3: 1.04,
|
||||||
4: 1.01,
|
4: 1.01,
|
||||||
5: 1.08,
|
5: 1.175,
|
||||||
6: 1.45,
|
6: 1.45,
|
||||||
7: 1.1,
|
7: 1.1,
|
||||||
8: 5,
|
8: 5,
|
||||||
|
@ -4309,6 +4316,7 @@ function gameLoop(diff) {
|
||||||
}
|
}
|
||||||
if (player.mb.total.gte(3)) generatePoints("l", diff)
|
if (player.mb.total.gte(3)) generatePoints("l", diff)
|
||||||
if (player.mb.total.gte(5)) generatePoints("hs", diff)
|
if (player.mb.total.gte(5)) generatePoints("hs", diff)
|
||||||
|
if (player.mb.total.gte(10)) generatePoints("sp", diff)
|
||||||
|
|
||||||
if (player.b.auto&&player.t.best.gte(5)) doReset("b")
|
if (player.b.auto&&player.t.best.gte(5)) doReset("b")
|
||||||
if (player.g.auto&&player.s.best.gte(5)) doReset("g")
|
if (player.g.auto&&player.s.best.gte(5)) doReset("g")
|
||||||
|
@ -4328,7 +4336,7 @@ function gameLoop(diff) {
|
||||||
}
|
}
|
||||||
if (player.m.auto&&player.m.total.gte(50)) for (let i=1;i<=tmp.spellsUnl;i++) activateSpell(i)
|
if (player.m.auto&&player.m.total.gte(50)) for (let i=1;i<=tmp.spellsUnl;i++) activateSpell(i)
|
||||||
if (player.ps.auto&&player.ps.best.gte(2)) doReset("ps")
|
if (player.ps.auto&&player.ps.best.gte(2)) doReset("ps")
|
||||||
if (player.i.auto&&player.mb.total.gte(12)) doReset("i")
|
if (player.i.auto&&player.mb.total.gte(10)) doReset("i")
|
||||||
|
|
||||||
if (player.hasNaN&&!NaNalert) {
|
if (player.hasNaN&&!NaNalert) {
|
||||||
clearInterval(interval);
|
clearInterval(interval);
|
||||||
|
|
Loading…
Add table
Reference in a new issue