mirror of
https://github.com/thepaperpilot/The-Modding-Tree.git
synced 2025-02-07 18:41:36 +00:00
Beta v1.1 Alpha 11
This commit is contained in:
parent
7430d7cb18
commit
108fcbf041
3 changed files with 46 additions and 6 deletions
10
index.html
10
index.html
|
@ -16,6 +16,11 @@
|
|||
<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.1 Alpha 11</h3>
|
||||
<ul>
|
||||
<li>Added a new Quirk Milestone</li>
|
||||
<li>Balanced up to 1e15 Hindrance Spirit, 1e16 Quirks, and 1e42,500 Points</li>
|
||||
</ul><br>
|
||||
<h3>Beta v1.1 Alpha 10</h3>
|
||||
<ul>
|
||||
<li>Balanced up to 2e13 Hindrance Spirit & Quirks, and 1e31,000 Points</li>
|
||||
|
@ -255,7 +260,9 @@
|
|||
<button onclick="respecSpaceBuildings()" v-bind:class="{ longUpg: true, can: player.s.unl, locked: !player.s.unl }">Respec Space Buildings</button><br>
|
||||
<div class="upgRow">
|
||||
<div v-for="id in 5">
|
||||
<button v-if="tmp.sbUnl>=id" v-bind:class="{ upg: true, can: (player.g.power.gte(getSpaceBuildingCost(id))&&player.s.unl&&getSpace().gte(1)), locked: (!(player.g.power.gte(getSpaceBuildingCost(id))&&player.s.unl&&getSpace().gte(1))), s: true }" v-on:click="buyBuilding(id)">Building {{id}}<br>Level: {{formatWhole(player.s.buildings[id])}}<br>Cost: {{format(getSpaceBuildingCost(id))}} Generator Power<br>Effect: {{getSpaceBuildingEffDesc(id)}}</button>
|
||||
<button v-if="tmp.sbUnl>=id" v-bind:class="{ upg: true, can: (player.g.power.gte(getSpaceBuildingCost(id))&&player.s.unl&&getSpace().gte(1)), locked: (!(player.g.power.gte(getSpaceBuildingCost(id))&&player.s.unl&&getSpace().gte(1))), s: true }" v-on:click="buyBuilding(id)">Building {{id}}<br>Level: {{formatWhole(player.s.buildings[id])}}<br>Cost: {{format(getSpaceBuildingCost(id))}} Generator Power<br>Effect: {{getSpaceBuildingEffDesc(id)}}</button><br><br>
|
||||
<button v-if="tmp.sbUnl>=id&&player.q.best.gte(2500)" v-bind:class="{ longUpg: true, can: player.s.buildings[id].gte(1), locked: player.s.buildings[id].lt(1) }" v-on:click="destroyBuilding(id)">Destroy One</button><br>
|
||||
<button v-if="tmp.sbUnl>=id&&player.q.best.gte(2500)" v-bind:class="{ longUpg: true, can: player.s.buildings[id].gte(1), locked: player.s.buildings[id].lt(1) }" v-on:click="destroyBuilding(id, true)">Destroy All</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -283,6 +290,7 @@
|
|||
<tr><td v-if="milestoneShown(player.q.best.gte(10), true)" v-bind:class="{ milestone: player.q.best.lt(10), milestoneDone: player.q.best.gte(10) }">10 Quirks<br>Automatically purchase Time Capsules & Space Energy<br><button v-if="player.q.best.gte(10)" class="smallUpg can t" onclick="toggleAuto('t')">{{player.t.auto?"ON":"OFF"}}</button> <button v-if="player.q.best.gte(10)" class="smallUpg can s" onclick="toggleAuto('s')">{{player.s.auto?"ON":"OFF"}}</button></td></tr>
|
||||
<tr><td v-if="milestoneShown(player.q.best.gte(15))" v-bind:class="{ milestone: player.q.best.lt(15), milestoneDone: player.q.best.gte(15) }">15 Quirks<br>Gain 100% of Enhance Point gain every second</td></tr>
|
||||
<tr><td v-if="milestoneShown(player.q.best.gte(25))" v-bind:class="{ milestone: player.q.best.lt(25), milestoneDone: player.q.best.gte(25) }">25 Quirks<br>Space resets reset nothing</td></tr>
|
||||
<tr><td v-if="milestoneShown(player.q.best.gte(2500))" v-bind:class="{ milestone: player.q.best.lt(2500), milestoneDone: player.q.best.gte(2500) }">2,500 Quirks<br>You can destroy individual Space Buildings</td></tr>
|
||||
</table><br><br>
|
||||
<button v-bind:class="{ upgBig: true, can: player.q.points.gte(getQuirkLayerCost()), locked: player.q.points.lt(getQuirkLayerCost()), q: true }" onclick="buyQuirkLayer()">Increment your Quirk Layer<br>Cost: {{formatWhole(getQuirkLayerCost())}} Quirks<br>Layers: {{formatWhole(player.q.layers)}}</button>
|
||||
</div>
|
||||
|
|
41
js/game.js
41
js/game.js
|
@ -693,7 +693,7 @@ const LAYER_UPGS = {
|
|||
cols: 0,
|
||||
},
|
||||
q: {
|
||||
rows: 3,
|
||||
rows: 4,
|
||||
cols: 4,
|
||||
11: {
|
||||
desc: "Quirks & Hindrance Spirit boost Point, Prestige Point, and Enhance Point gain.",
|
||||
|
@ -715,7 +715,7 @@ const LAYER_UPGS = {
|
|||
14: {
|
||||
desc: "Quirk Layers are thrice as fast.",
|
||||
cost: new Decimal(2e10),
|
||||
unl: function() { return player.h.challs.includes(32)&&player.q.upgrades.includes(13) },
|
||||
unl: function() { return player.h.challs.includes(32) },
|
||||
},
|
||||
21: {
|
||||
desc: "Quirk Layers are faster based on your Quirks.",
|
||||
|
@ -742,7 +742,7 @@ const LAYER_UPGS = {
|
|||
24: {
|
||||
desc: "The Time Energy limit is higher based on your Quirk Energy.",
|
||||
cost: new Decimal(5e10),
|
||||
unl: function() { return player.h.challs.includes(32)&&player.q.upgrades.includes(23) },
|
||||
unl: function() { return player.h.challs.includes(32) },
|
||||
currently: function() { return player.q.energy.div(1e6).plus(1).pow(0.9) },
|
||||
effDisp: function(x) { return format(x)+"x" },
|
||||
},
|
||||
|
@ -766,10 +766,30 @@ const LAYER_UPGS = {
|
|||
34: {
|
||||
desc: "Enhance Points boost Hindrance Spirit & Quirk gain.",
|
||||
cost: new Decimal(1e11),
|
||||
unl: function() { return player.h.challs.includes(32)&&player.q.upgrades.includes(33) },
|
||||
unl: function() { return player.h.challs.includes(32) },
|
||||
currently: function() { return player.e.points.plus(1).log10().cbrt().plus(1) },
|
||||
effDisp: function(x) { return format(x)+"x" },
|
||||
},
|
||||
41: {
|
||||
desc: "Space Buildings are 40% stronger.",
|
||||
cost: new Decimal(2.5e13),
|
||||
unl: function() { return player.h.challs.includes(32) },
|
||||
},
|
||||
42: {
|
||||
desc: "Enhancers are 40% stronger.",
|
||||
cost: new Decimal(2e14),
|
||||
unl: function() { return player.h.challs.includes(32) },
|
||||
},
|
||||
43: {
|
||||
desc: "???",
|
||||
cost: new Decimal(1/0),
|
||||
unl: function() { return player.h.challs.includes(32) },
|
||||
},
|
||||
44: {
|
||||
desc: "???",
|
||||
cost: new Decimal(1/0),
|
||||
unl: function() { return player.h.challs.includes(32) },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -1392,6 +1412,7 @@ function getEnhancerPow() {
|
|||
if (player.e.upgrades.includes(25)&&!(tmp.hcActive?tmp.hcActive[12]:true)) pow = pow.times(LAYER_UPGS.e[25].currently())
|
||||
if (player.e.upgrades.includes(31)&&!(tmp.hcActive?tmp.hcActive[12]:true)) pow = pow.times(LAYER_UPGS.e[31].currently())
|
||||
if (player.h.challs.includes(31)) pow = pow.times(2)
|
||||
if (player.q.upgrades.includes(42)) pow = pow.times(1.4)
|
||||
return pow
|
||||
}
|
||||
|
||||
|
@ -1531,6 +1552,7 @@ function getSpaceBuildingPow() {
|
|||
if (player.s.upgrades.includes(21)&&!(tmp.hcActive?tmp.hcActive[12]:true)) pow = pow.times(LAYER_UPGS.s[21].currently())
|
||||
if (player.s.upgrades.includes(22)&&!(tmp.hcActive?tmp.hcActive[12]:true)) pow = pow.times(LAYER_UPGS.s[22].currently())
|
||||
if (player.s.upgrades.includes(23)&&!(tmp.hcActive?tmp.hcActive[12]:true)) pow = pow.times(LAYER_UPGS.s[23].currently())
|
||||
if (player.q.upgrades.includes(41)) pow = pow.times(1.4)
|
||||
return pow
|
||||
}
|
||||
|
||||
|
@ -1600,6 +1622,15 @@ function buyBuilding(x) {
|
|||
player.s.buildings[x] = player.s.buildings[x].plus(1)
|
||||
}
|
||||
|
||||
function destroyBuilding(x, all=false) {
|
||||
if (!player.s.unl) return
|
||||
if (tmp.sbUnl<x) return
|
||||
if (player.s.buildings[x].lt(1)) return
|
||||
if (player.q.best.lt(2500)) return
|
||||
player.s.spent = player.s.spent.sub(all?player.s.buildings[x]:1)
|
||||
player.s.buildings[x] = all?new Decimal(0):player.s.buildings[x].sub(1)
|
||||
}
|
||||
|
||||
function respecSpaceBuildings() {
|
||||
if (!player.s.unl) return;
|
||||
if (!confirm("Are you sure you want to reset your Space Buildings? This will force you to do a Space reset as well!")) return
|
||||
|
@ -1721,7 +1752,7 @@ const H_CHALLS = {
|
|||
desc: "Prestige Upgrade 2 does nothing",
|
||||
unl: function() { return player.h.challs.includes(21)&&player.h.challs.includes(22) },
|
||||
goal: new Decimal("1e2580"),
|
||||
reward: "Unlock 2 new Super-Booster Upgrades.",
|
||||
reward: "Unlock 2 new Super-Booster Upgrades and 7 new Quirk Upgrades.",
|
||||
},
|
||||
41: {
|
||||
name: "Skip the Third",
|
||||
|
|
1
js/v.js
1
js/v.js
|
@ -25,6 +25,7 @@ function loadVue() {
|
|||
startHindrance,
|
||||
HCActive,
|
||||
milestoneShown,
|
||||
destroyBuilding,
|
||||
LAYERS,
|
||||
LAYER_RES,
|
||||
LAYER_TYPE,
|
||||
|
|
Loading…
Add table
Reference in a new issue