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

Beta v1.2 Alpha 8

This commit is contained in:
Jacorb90 2020-09-05 16:00:21 -04:00
parent f03a3bf1de
commit 8040846f3d
3 changed files with 63 additions and 6 deletions

View file

@ -15,6 +15,12 @@
<div class="vl"></div>
<div v-if="player.tab=='changelog'" class="col right">
<button class="back" onclick="showTab('tree')"></button><br><br>
<h3>Beta v1.2 Alpha 8</h3>
<ul>
<li>Added a new milestone</li>
<li>Added a new Hindrance ;)</li>
<li>Balanced up to 1e5,500,000 Points, 2.5e10 Magic, and 2e9 Balance Energy</li>
</ul><br>
<h3>Beta v1.2 Alpha 7</h3>
<ul>
<li>Balanced up to 1e3,950,000 Points, 1,500,000 Magic, and 5,000,000 Balance Energy</li>
@ -233,7 +239,8 @@
Time Played: {{ formatTime(player.timePlayed) }}<br><br><br>
<div id="cl" onclick="showTab('credits')">Credits</div><br>
<div id="cl" onclick="showTab('changelog')">Changelog</div><br>
<a id="cl" href="https://plaza.dsolver.ca/m/Jacorb90" target="_blank">Plaza dSolver</a><br><br><br>
<div id="cl" onclick="window.open('https://discord.gg/wwQfgPa','mywindow')" target="_blank">My Discord</div><br>
<div id="cl" onclick="window.open('https://plaza.dsolver.ca/m/Jacorb90','mywindow')" target="_blank">Plaza dSolver</div><br><br>
<h3>Hotkeys</h3><br><br>
P: Prestige reset<br>
<span v-if="player.b.unl">B: Booster reset</span><br>
@ -428,15 +435,16 @@
<br>
<div class="upgRow">
<div v-for="id in 3">
<button v-bind:class="{ upg: true, bought: spellActive(id), can: ((player.m.points.gte(1))&&player.m.unl&&!spellActive(id)), locked: (!(player.m.points.gte(1)||spellActive(id))), m: true }" v-on:click="activateSpell(id)"><h3>{{SPELL_NAMES[id]}}</h3><br>Time Left: {{format(player.m.spellTimes[id])}}<br>Effect: {{getSpellDesc(id)}}</button>
<button v-bind:class="{ upg: true, bought: spellActive(id), can: ((player.m.points.gte(1))&&player.m.unl&&!spellActive(id)), locked: (!(player.m.points.gte(1)||spellActive(id))), m: true }" v-on:click="activateSpell(id)"><h3>{{SPELL_NAMES[id]}}</h3><br>Time Left: {{formatTime(player.m.spellTimes[id])}}<br>Effect: {{getSpellDesc(id)}}</button>
</div>
</div><br><br>
You have {{formatWhole(player.m.hexes)}} Hexes, which are multiplying Hindrance Spirit & Quirk gain by {{format(tmp.hexEff)}}<br><br>
<table>
<tr><td v-if="milestoneShown(player.m.best.gte(1))" v-bind:class="{ milestone: player.m.best.lt(1), milestoneDone: player.m.best.gte(1) }">1 Magic<br>Keep row 4 milestones on all resets</td></tr>
<tr><td v-if="milestoneShown(player.m.best.gte(2))" v-bind:class="{ milestone: player.m.best.lt(2), milestoneDone: player.m.best.gte(2) }">2 Magic<br>Keep Hindrance completions on all resets</td></tr>
<tr><td v-if="milestoneShown(player.m.best.gte(3))" v-bind:class="{ milestone: player.m.best.lt(3), milestoneDone: player.m.best.gte(3) }">3 Magic<br>Gain 1% of Hindrance Spirit & Quirk gain every second</td></tr>
<tr><td v-if="milestoneShown(player.m.best.gte(3))" v-bind:class="{ milestone: player.m.best.lt(3), milestoneDone: player.m.best.gte(3) }">3 Magic<br>Gain 100% of Hindrance Spirit & Quirk gain every second</td></tr>
<tr><td v-if="milestoneShown(player.m.best.gte(4), true)" v-bind:class="{ milestone: player.m.best.lt(4), milestoneDone: player.m.best.gte(4) }">4 Magic<br>Automatically purchase Hyper-Boosters & Subspace&nbsp;&nbsp;&nbsp;<button v-if="player.m.best.gte(4)" class="smallUpg can hb" onclick="toggleAuto('hb')">{{player.hb.auto?"ON":"OFF"}}</button>&nbsp;&nbsp;&nbsp;<button v-if="player.m.best.gte(4)" class="smallUpg can ss" onclick="toggleAuto('ss')">{{player.ss.auto?"ON":"OFF"}}</button></td></tr>
<tr><td v-if="milestoneShown(player.m.best.gte(2.5e9))" v-bind:class="{ milestone: player.m.best.lt(2.5e9), milestoneDone: player.m.best.gte(2.5e9) }">2.5e9 Magic<br>Gain 100% of Hex gain every second, and Spells last 10x longer</td></tr>
</table>
</div>
<div v-if="layer=='ba'">

View file

@ -282,7 +282,7 @@ const LAYER_EFFS = {
limit: Decimal.pow(2, player.t.points.plus(player.t.extCapsules.plus(tmp.freeExtCap).times(getFreeExtPow())).times(getCapPow())).sub(1).times(100).times(getTimeEnergyLimitMult()),
}},
sb: function() { return Decimal.pow(Decimal.add(1.5, addToSBBase()), player.sb.points.times(getSuperBoosterPow())) },
sg: function() { return Decimal.pow(Decimal.add(2, addToSGBase()), player.sg.points).times(getSuperGenPowerGainMult()).max(0) },
sg: function() { return Decimal.pow(Decimal.add(2, addToSGBase()), player.sg.points).sub(1).times(getSuperGenPowerGainMult()).max(0) },
h: function() {
let ret = player.h.points.plus(1).times(player.points.times(player.h.points).plus(1).log10().plus(1).log10().plus(1)).log10().times(5).root(player.q.upgrades.includes(12)?1.25:2);
if (player.h.challs.includes(61)) ret = ret.times(1.2);
@ -1044,7 +1044,7 @@ const LAYER_UPGS = {
},
},
m: {
rows: 2,
rows: 3,
cols: 4,
11: {
desc: "Hexes boost all Spells.",
@ -1096,6 +1096,30 @@ const LAYER_UPGS = {
currently: function() { return player.b.points.plus(1).log10().times(0.9) },
effDisp: function(x) { return "+"+format(x) },
},
31: {
desc: "Unlock a new Hindrance.",
cost: new Decimal(2.5e6),
unl: function() { return player.m.upgrades.includes(23)&&player.sg.unl },
},
32: {
desc: "Hyper-Boosters add free Space Buildings.",
cost: new Decimal(5e9),
unl: function() { return player.m.upgrades.includes(24) },
currently: function() { return player.hb.points.plus(1).pow(3) },
effDisp: function(x) { return "+"+formatWhole(x) },
},
33: {
desc: "Hindrance Spirit adds to the Hyper-Booster base.",
cost: new Decimal(2e10),
unl: function() { return player.m.upgrades.includes(31) },
currently: function() { return player.h.points.plus(1).log10().plus(1).log10().plus(1).log10().div(2) },
effDisp: function(x) { return "+"+format(x) },
},
34: {
desc: "???",
cost: new Decimal(1/0),
unl: function() { return false },
},
},
ba: {
rows: 3,
@ -1584,6 +1608,7 @@ function getLayerGainMult(layer) {
if (player.ss.upgrades.includes(14)) mult = mult.div(1.0825)
break;
case "h":
if (player.h.challs.includes(71)) mult = mult.times(H_CHALLS[71].currently())
if (player.q.upgrades.includes(22)) mult = mult.times(LAYER_UPGS.q[22].currently().h)
if (player.q.upgrades.includes(34)) mult = mult.times(LAYER_UPGS.q[34].currently())
if (player.q.upgrades.includes(44)) mult = mult.times(LAYER_UPGS.q[44].currently())
@ -2161,6 +2186,7 @@ function getExtraBuildingLevels(x) {
if (player.s.upgrades.includes(14)&&!(tmp.hcActive?tmp.hcActive[12]:true)) lvl = lvl.plus(1);
if (player.q.upgrades.includes(31)) lvl = lvl.plus(1);
if (x<5) lvl = lvl.plus(tmp.spaceBuildEff[5])
if (player.m.upgrades.includes(32)) lvl = lvl.plus(LAYER_UPGS.m[32].currently())
return lvl
}
@ -2353,7 +2379,7 @@ function maxQuirkLayers() {
}
const H_CHALLS = {
rows: 6,
rows: 7,
cols: 2,
11: {
name: "Skip the Second",
@ -2453,9 +2479,26 @@ const H_CHALLS = {
goal: new Decimal("1e134000"),
reward: "Unlock Super-Generators.",
},
71: {
name: "The Final Stockade",
desc: 'All previous Hindrances (except "Slowed to a Halt" and "Anti-Enhancers") are applied at once.',
unl: function() { return player.m.upgrades.includes(31) },
goal: new Decimal("1e1150"),
reward: "Gain more Hindrance Spirit based on your Quirk Energy.",
currently: function() { return player.q.energy.plus(1).sqrt() },
effDisp: function(x) { return format(x)+"x" },
},
72: {
name: "You shouldn't be seeing this",
desc: "Never gonna give you up, never gonna let you down, never gonna run around and dessert you",
unl: function() { return false },
goal: new Decimal(1/0),
reward: "???",
},
}
function HCActive(x) {
if (x<71&&x!=42&&x!=52) if (HCActive(71)) return true
if (x==11||x==41) if (HCActive(51)) return true
if (x==31||x==32) if (HCActive(61)) return true
return player.h.active==x;
@ -2530,6 +2573,7 @@ function getSubspaceGainMult() {
function addToHBBase() {
let toAdd = new Decimal(0)
if (player.m.upgrades.includes(13)) toAdd = toAdd.plus(LAYER_UPGS.m[13].currently())
if (player.m.upgrades.includes(33)) toAdd = toAdd.plus(LAYER_UPGS.m[33].currently())
return toAdd
}
@ -2620,6 +2664,7 @@ function getSpellDesc(x) {
function getSpellTime() {
let time = 20
if (player.m.best.gte(2.5e9)) time *= 10
return time
}
@ -2703,6 +2748,7 @@ function gameLoop(diff) {
player.h.points = player.h.points.plus(tmp.resetGain.h.times(diff)).max(0)
player.q.points = player.q.points.plus(tmp.resetGain.q.times(diff)).max(0)
}
if (player.m.best.gte(2.5e9)) player.m.hexes = player.m.hexes.plus(getHexGain().times(diff)).max(0)
if (player.b.auto&&player.t.best.gte(5)) doReset("b")
if (player.g.auto&&player.s.best.gte(5)) doReset("g")

View file

@ -301,8 +301,11 @@ h1, h2 {
font-size: 20px;
color: white;
cursor: pointer;
width: 100%;
min-width: 100%;
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: #02f2f2;
text-decoration: none;
}
#cl:hover {