mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-22 00:21:32 +00:00
Beta v1.1 Alpha 17
This commit is contained in:
parent
425855800b
commit
cb65039637
2 changed files with 29 additions and 7 deletions
|
@ -16,6 +16,11 @@
|
||||||
<div class="vl"></div>
|
<div class="vl"></div>
|
||||||
<div v-if="player.tab=='changelog'" class="col right">
|
<div v-if="player.tab=='changelog'" class="col right">
|
||||||
<button class="back" onclick="showTab('tree')">←</button><br><br>
|
<button class="back" onclick="showTab('tree')">←</button><br><br>
|
||||||
|
<h3>Beta v1.1 Alpha 17</h3>
|
||||||
|
<ul>
|
||||||
|
<li>Fixed a bug with unlocking Hyper-Boosters & Subspace</li>
|
||||||
|
<li>Balanced up to 1e710,000 Points</li>
|
||||||
|
</ul><br>
|
||||||
<h3>Beta v1.1 Alpha 16</h3>
|
<h3>Beta v1.1 Alpha 16</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Added a new Hindrance (h9)</li>
|
<li>Added a new Hindrance (h9)</li>
|
||||||
|
|
31
js/game.js
31
js/game.js
|
@ -209,6 +209,14 @@ const ROW_LAYERS = [
|
||||||
["future_layer"],
|
["future_layer"],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
const ORDER_UP = [
|
||||||
|
[],
|
||||||
|
[],
|
||||||
|
["e","t","s","sb"],
|
||||||
|
["hb","ss"],
|
||||||
|
[],
|
||||||
|
]
|
||||||
|
|
||||||
const LAYER_EFFS = {
|
const LAYER_EFFS = {
|
||||||
b: function() {
|
b: function() {
|
||||||
if (tmp.hcActive ? tmp.hcActive[11] : true) return new Decimal(1);
|
if (tmp.hcActive ? tmp.hcActive[11] : true) return new Decimal(1);
|
||||||
|
@ -413,7 +421,7 @@ const LAYER_UPGS = {
|
||||||
desc: "Generators are cheaper based on your Prestige Points.",
|
desc: "Generators are cheaper based on your Prestige Points.",
|
||||||
cost: new Decimal(19),
|
cost: new Decimal(19),
|
||||||
unl: function() { return player.g.upgrades.includes(15) },
|
unl: function() { return player.g.upgrades.includes(15) },
|
||||||
currently: function() { return player.p.points.plus(1).pow(0.25) },
|
currently: function() { return player.p.points.plus(1).pow(0.25).pow(player.g.upgrades.includes(32)?2.5:1) },
|
||||||
effDisp: function(x) { return "/"+format(x) },
|
effDisp: function(x) { return "/"+format(x) },
|
||||||
},
|
},
|
||||||
23: {
|
23: {
|
||||||
|
@ -436,21 +444,23 @@ const LAYER_UPGS = {
|
||||||
effDisp: function(x) { return format(x)+"x" },
|
effDisp: function(x) { return format(x)+"x" },
|
||||||
},
|
},
|
||||||
31: {
|
31: {
|
||||||
desc: "Generators Upgrade 10 is stronger based on your Generators.",
|
desc: "Generator Upgrade 10 is stronger based on your Generators.",
|
||||||
cost: new Decimal(950),
|
cost: new Decimal(950),
|
||||||
unl: function() { return player.ss.upgrades.includes(21) },
|
unl: function() { return player.ss.upgrades.includes(21) },
|
||||||
currently: function() { return player.g.points.plus(1).log10().pow(3.6).plus(1) },
|
currently: function() { return player.g.points.plus(1).log10().pow(3.6).plus(1) },
|
||||||
effDisp: function(x) { return format(x.sub(1).times(100))+"% stronger" },
|
effDisp: function(x) { return format(x.sub(1).times(100))+"% stronger" },
|
||||||
},
|
},
|
||||||
32: {
|
32: {
|
||||||
desc: "???",
|
desc: "Generator Upgrade 7 is 150% stronger.",
|
||||||
cost: new Decimal(1/0),
|
cost: new Decimal(960),
|
||||||
unl: function() { return player.ss.upgrades.includes(21) },
|
unl: function() { return player.ss.upgrades.includes(21) },
|
||||||
},
|
},
|
||||||
33: {
|
33: {
|
||||||
desc: "???",
|
desc: "Generator Power adds to the Generator base.",
|
||||||
cost: new Decimal(1/0),
|
cost: new Decimal(1025),
|
||||||
unl: function() { return player.ss.upgrades.includes(21) },
|
unl: function() { return player.ss.upgrades.includes(21) },
|
||||||
|
currently: function() { return player.g.power.plus(1).log10().div(15).plus(1) },
|
||||||
|
effDisp: function(x) { return "+"+format(x) },
|
||||||
},
|
},
|
||||||
34: {
|
34: {
|
||||||
desc: "???",
|
desc: "???",
|
||||||
|
@ -1093,6 +1103,12 @@ function versionCheck() {
|
||||||
setVersion = false;
|
setVersion = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (player.versionType=="beta") {
|
||||||
|
if (player.version<=1.1) if (!(player.hb.unl||player.ss.unl)) {
|
||||||
|
player.hb.order = 0
|
||||||
|
player.ss.order = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (setVersion) {
|
if (setVersion) {
|
||||||
player.versionType = getStartPlayer().versionType
|
player.versionType = getStartPlayer().versionType
|
||||||
|
@ -1500,7 +1516,7 @@ function doReset(layer, force=false) {
|
||||||
needCanvasUpdate = true;
|
needCanvasUpdate = true;
|
||||||
|
|
||||||
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]]!==undefined) player[layers[i]].order++
|
for (let i in layers) if (!player[layers[i]].unl && player[layers[i]]!==undefined) player[layers[i]].order += ORDER_UP[LAYER_ROW[layer]].includes(layer)?1:0
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp.layerAmt[layer] = new Decimal(0) // quick fix
|
tmp.layerAmt[layer] = new Decimal(0) // quick fix
|
||||||
|
@ -1576,6 +1592,7 @@ function addToGenBase() {
|
||||||
let toAdd = new Decimal(0)
|
let toAdd = new Decimal(0)
|
||||||
if (player.g.upgrades.includes(12)) toAdd = toAdd.plus(LAYER_UPGS.g[12].currently())
|
if (player.g.upgrades.includes(12)) toAdd = toAdd.plus(LAYER_UPGS.g[12].currently())
|
||||||
if (player.g.upgrades.includes(13)) toAdd = toAdd.plus(LAYER_UPGS.g[13].currently())
|
if (player.g.upgrades.includes(13)) toAdd = toAdd.plus(LAYER_UPGS.g[13].currently())
|
||||||
|
if (player.g.upgrades.includes(33)) toAdd = toAdd.plus(LAYER_UPGS.g[33].currently())
|
||||||
if (player.e.unl) toAdd = toAdd.plus(tmp.enhEff2)
|
if (player.e.unl) toAdd = toAdd.plus(tmp.enhEff2)
|
||||||
if (player.e.upgrades.includes(11)&&!(tmp.hcActive?tmp.hcActive[12]:true)) toAdd = toAdd.plus(LAYER_UPGS.e[11].currently().g)
|
if (player.e.upgrades.includes(11)&&!(tmp.hcActive?tmp.hcActive[12]:true)) toAdd = toAdd.plus(LAYER_UPGS.e[11].currently().g)
|
||||||
if (player.s.unl && tmp.spaceBuildEff) toAdd = toAdd.plus(tmp.spaceBuildEff[2])
|
if (player.s.unl && tmp.spaceBuildEff) toAdd = toAdd.plus(tmp.spaceBuildEff[2])
|
||||||
|
|
Loading…
Reference in a new issue