1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 09:21:46 +00:00

Alpha Build 9

This commit is contained in:
Jacorb90 2020-08-21 23:59:24 -04:00
parent 90fabb34d0
commit 6a521875b5
2 changed files with 45 additions and 9 deletions

View file

@ -46,9 +46,17 @@
</ul><br><br> </ul><br><br>
<h3>Alpha Build 8</h3> <h3>Alpha Build 8</h3>
<ul> <ul>
<li>Implemented Super Boosters</li> <li>Implemented Super-Boosters</li>
<li>Balanced up to 1e25,600 points</li> <li>Balanced up to 1e25,600 points</li>
</ul><br><br> </ul><br><br>
<h3>Alpha Build 9</h3>
<ul>
<li>Fixed a visual bug with the Prestige Tree branches</li>
<li>Added a hotkey for Super-Boosters</li>
<li>Added a new Super-Booster milestone</li>
<li>Fixed a bug with hotkeys</li>
<li>Balanced up to 1e46,500 points</li>
</ul><br><br>
</div> </div>
<div v-if="player.tab=='info'" class="col right"> <div v-if="player.tab=='info'" class="col right">
<button class="back" onclick="showTab('tree')"></button><br><br><br><br><br> <button class="back" onclick="showTab('tree')"></button><br><br><br><br><br>
@ -60,6 +68,7 @@
<span v-if="player.t.unl">T: Time reset</span><br> <span v-if="player.t.unl">T: Time reset</span><br>
<span v-if="player.e.unl">E: Enhance reset</span><br> <span v-if="player.e.unl">E: Enhance reset</span><br>
<span v-if="player.s.unl">S: Space reset</span><br> <span v-if="player.s.unl">S: Space reset</span><br>
<span v-if="player.sb.unl">Shift+B: Super-Booster reset</span><br>
</div> </div>
<div v-if="player.tab=='options'" class="col right"> <div v-if="player.tab=='options'" class="col right">
<button class="back" onclick="showTab('tree')"></button><br><br><br><br><br> <button class="back" onclick="showTab('tree')"></button><br><br><br><br><br>
@ -154,6 +163,7 @@
</div> </div>
<div v-if="layer=='sb'"> <div v-if="layer=='sb'">
<table><tr><td v-bind:class="{ milestone: player.sb.best.lt(3), milestoneDone: player.sb.best.gte(3) }">3 Super-Boosters<br>Keep Prestige Upgrades on reset</td></tr></table> <table><tr><td v-bind:class="{ milestone: player.sb.best.lt(3), milestoneDone: player.sb.best.gte(3) }">3 Super-Boosters<br>Keep Prestige Upgrades on reset</td></tr></table>
<table><tr><td v-bind:class="{ milestone: player.sb.best.lt(7), milestoneDone: player.sb.best.gte(7) }">7 Super-Boosters<br>Keep Booster/Generator milestones on reset</td></tr></table>
</div> </div>
<br><br><br> <br><br><br>
<button v-if="LAYER_TYPE[layer]=='normal'" v-bind:class="{ [layer]: true, reset: true, locked: tmp.layerAmt[layer].lt(tmp.layerReqs[layer]), can: tmp.layerAmt[layer].gte(tmp.layerReqs[layer]) }" v-on:click="doReset(layer)">+{{formatWhole(tmp.resetGain[layer])}} {{LAYER_RES[layer]}}<br>Next at {{ format(tmp.nextAt[layer]) }} {{ LAYER_AMT_NAMES[layer] }}</button> <button v-if="LAYER_TYPE[layer]=='normal'" v-bind:class="{ [layer]: true, reset: true, locked: tmp.layerAmt[layer].lt(tmp.layerReqs[layer]), can: tmp.layerAmt[layer].gte(tmp.layerReqs[layer]) }" v-on:click="doReset(layer)">+{{formatWhole(tmp.resetGain[layer])}} {{LAYER_RES[layer]}}<br>Next at {{ format(tmp.nextAt[layer]) }} {{ LAYER_AMT_NAMES[layer] }}</button>

View file

@ -453,9 +453,11 @@ const LAYER_UPGS = {
unl: function() { return player.s.unl&&player.e.unl&&player.t.upgrades.includes(32) }, unl: function() { return player.s.unl&&player.e.unl&&player.t.upgrades.includes(32) },
}, },
34: { 34: {
desc: "???", desc: "Time Energy caps later and generates faster based on your non-free Time Capsules.",
cost: new Decimal(1/0), cost: new Decimal(25),
unl: function() { return false }, unl: function() { return player.t.upgrades.includes(33)&&player.sb.unl&&player.sb.points.gte(7) },
currently: function() { return Decimal.pow(10, player.t.points.pow(1.1)) },
effDisp: function(x) { return format(x)+"x" },
}, },
}, },
s: { s: {
@ -536,12 +538,23 @@ const LAYER_UPGS = {
}, },
sb: { sb: {
rows: 1, rows: 1,
cols: 1, cols: 2,
11: { 11: {
desc: "Super-Boosters are stronger based on your Prestige Points.", desc: "Super-Boosters are stronger based on your Prestige Points.",
cost: new Decimal(2), cost: new Decimal(2),
unl: function() { return player.sb.unl }, unl: function() { return player.sb.unl },
currently: function() { return Decimal.pow(10, player.p.points.plus(1).log10().div(1e5).sqrt()) }, currently: function() {
let ret = Decimal.pow(10, player.p.points.plus(1).log10().div(1e5).sqrt());
if (ret.gte(2.5)) ret = ret.log(2.5).plus(1.5).min(ret);
return ret;
},
effDisp: function(x) { return format(x)+"x" },
},
12: {
desc: "Super-Boosters are stronger based on your Generators.",
cost: new Decimal(8),
unl: function() { return player.sb.upgrades.includes(11) },
currently: function() { return player.g.points.div(10).pow(0.04) },
effDisp: function(x) { return format(x)+"x" }, effDisp: function(x) { return format(x)+"x" },
}, },
}, },
@ -857,6 +870,9 @@ function rowReset(row, layer) {
player.b.best = new Decimal(prev.b.best) player.b.best = new Decimal(prev.b.best)
player.g.best = new Decimal(prev.g.best) player.g.best = new Decimal(prev.g.best)
} }
} else if (player.sb.best.gte(7)&&layer=="sb") {
player.b.best = new Decimal(prev.b.best)
player.g.best = new Decimal(prev.g.best)
} }
break; break;
case 3: case 3:
@ -913,6 +929,8 @@ function doReset(layer, force=false) {
let layers = ROW_LAYERS[LAYER_ROW[layer]] let layers = ROW_LAYERS[LAYER_ROW[layer]]
for (let i in layers) if (!player[layers[i]].unl) player[layers[i]].order++ for (let i in layers) if (!player[layers[i]].unl) player[layers[i]].order++
} }
tmp.layerAmt[layer] = new Decimal(0) // quick fix
} }
if ((layer=="b"&&player.t.best.gte(12))||(layer=="g"&&player.s.best.gte(12))) return; if ((layer=="b"&&player.t.best.gte(12))||(layer=="g"&&player.s.best.gte(12))) return;
@ -1070,6 +1088,7 @@ function getTimeEnergyGainMult() {
if (player.t.upgrades.includes(21)) mult = mult.times(LAYER_UPGS.t[21].currently()) if (player.t.upgrades.includes(21)) mult = mult.times(LAYER_UPGS.t[21].currently())
if (player.t.upgrades.includes(22)) mult = mult.times(LAYER_UPGS.t[22].currently()) if (player.t.upgrades.includes(22)) mult = mult.times(LAYER_UPGS.t[22].currently())
if (player.t.upgrades.includes(23)) mult = mult.times(LAYER_UPGS.t[23].currently()) if (player.t.upgrades.includes(23)) mult = mult.times(LAYER_UPGS.t[23].currently())
if (player.t.upgrades.includes(34)) mult = mult.times(LAYER_UPGS.t[34].currently())
return mult; return mult;
} }
@ -1080,6 +1099,7 @@ function getTimeEnergyLimitMult() {
if (player.t.upgrades.includes(21)) mult = mult.times(LAYER_UPGS.t[21].currently()) if (player.t.upgrades.includes(21)) mult = mult.times(LAYER_UPGS.t[21].currently())
if (player.t.upgrades.includes(22)) mult = mult.times(LAYER_UPGS.t[22].currently()) if (player.t.upgrades.includes(22)) mult = mult.times(LAYER_UPGS.t[22].currently())
if (player.t.upgrades.includes(23)) mult = mult.times(LAYER_UPGS.t[23].currently()) if (player.t.upgrades.includes(23)) mult = mult.times(LAYER_UPGS.t[23].currently())
if (player.t.upgrades.includes(34)) mult = mult.times(LAYER_UPGS.t[34].currently())
return mult; return mult;
} }
@ -1215,6 +1235,7 @@ function toggleAuto(layer) {
function getSuperBoosterPow() { function getSuperBoosterPow() {
let pow = new Decimal(1) let pow = new Decimal(1)
if (player.sb.upgrades.includes(11)) pow = pow.times(LAYER_UPGS.sb[11].currently()) if (player.sb.upgrades.includes(11)) pow = pow.times(LAYER_UPGS.sb[11].currently())
if (player.sb.upgrades.includes(12)) pow = pow.times(LAYER_UPGS.sb[12].currently())
return pow; return pow;
} }
@ -1246,7 +1267,7 @@ var interval = setInterval(function() {
if (player===undefined) return; if (player===undefined) return;
let diff = (Date.now()-player.time)/1000 let diff = (Date.now()-player.time)/1000
player.time = Date.now() player.time = Date.now()
if (needCanvasUpdate && player.tab=="tree") resizeCanvas(); if (needCanvasUpdate) resizeCanvas();
updateTemp(); updateTemp();
gameLoop(diff) gameLoop(diff)
}, 50) }, 50)
@ -1255,6 +1276,11 @@ document.onkeydown = function(e) {
if (player===undefined) return; if (player===undefined) return;
let shiftDown = e.shiftKey let shiftDown = e.shiftKey
let key = e.key let key = e.key
if (!LAYERS.includes(key)) return if (!LAYERS.includes(key)) {
if (player[key].unl) doReset(key) switch(key) {
case "B":
if (player.sb.unl) doReset("sb")
break;
}
} else if (player[key].unl) doReset(key)
} }