mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-24 17:31:50 +00:00
v1.0 Beta 2
This commit is contained in:
parent
01f4c70192
commit
6881f49f57
2 changed files with 42 additions and 5 deletions
|
@ -15,6 +15,12 @@
|
||||||
<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>v1.0 Beta 2</h3>
|
||||||
|
<ul>
|
||||||
|
<li>Fixed a bug involving the fourth Spell</li>
|
||||||
|
<li>Added more Super-Prestige Upgrades</li>
|
||||||
|
<li>Balanced up to 1e26,000,000 Points & 250 Super-Prestige Points</li>
|
||||||
|
</ul><br>
|
||||||
<h3>v1.0 Beta 1</h3>
|
<h3>v1.0 Beta 1</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Implemented the Super-Prestige layer (unfinished)</li>
|
<li>Implemented the Super-Prestige layer (unfinished)</li>
|
||||||
|
|
41
js/game.js
41
js/game.js
|
@ -1354,7 +1354,7 @@ const LAYER_UPGS = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sp: {
|
sp: {
|
||||||
rows: 1,
|
rows: 2,
|
||||||
cols: 4,
|
cols: 4,
|
||||||
11: {
|
11: {
|
||||||
desc: "The Prestige Upgrade 3, 6, & 7 effects are raised to the power of 100.",
|
desc: "The Prestige Upgrade 3, 6, & 7 effects are raised to the power of 100.",
|
||||||
|
@ -1380,6 +1380,32 @@ const LAYER_UPGS = {
|
||||||
currently: function() { return player.sp.best.plus(1).pow(1.9) },
|
currently: function() { return player.sp.best.plus(1).pow(1.9) },
|
||||||
effDisp: function(x) { return format(x)+"x" },
|
effDisp: function(x) { return format(x)+"x" },
|
||||||
},
|
},
|
||||||
|
21: {
|
||||||
|
desc: "Super-Prestige Points add to the Super-Generator base.",
|
||||||
|
cost: new Decimal(15),
|
||||||
|
unl: function() { return player.sp.upgrades.includes(11) },
|
||||||
|
currently: function() { return player.sp.points.plus(1).log10().plus(1).log10().times(1.5) },
|
||||||
|
effDisp: function(x) { return "+"+format(x) },
|
||||||
|
},
|
||||||
|
22: {
|
||||||
|
desc: 'The effects of "Anti-Upgrades" & "Prestigeless" Hindrances are 24,900% stronger.',
|
||||||
|
cost: new Decimal(20),
|
||||||
|
unl: function() { return player.sp.upgrades.includes(12)||player.sp.upgrades.includes(21) },
|
||||||
|
},
|
||||||
|
23: {
|
||||||
|
desc: "Spells are stronger based on your Total Super-Prestige Points.",
|
||||||
|
cost: new Decimal(30),
|
||||||
|
unl: function() { return player.sp.upgrades.includes(13)||player.sp.upgrades.includes(22) },
|
||||||
|
currently: function() { return player.sp.total.plus(1).log10().div(5).plus(1) },
|
||||||
|
effDisp: function(x) { return format(x.sub(1).times(100))+"% stronger" },
|
||||||
|
},
|
||||||
|
24: {
|
||||||
|
desc: "Super-Prestige Points boost Super-Prestige Point gain.",
|
||||||
|
cost: new Decimal(40),
|
||||||
|
unl: function() { return player.sp.upgrades.includes(14)||player.sp.upgrades.includes(23) },
|
||||||
|
currently: function() { return player.sp.points.plus(1).sqrt() },
|
||||||
|
effDisp: function(x) { return format(x)+"x" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1829,6 +1855,9 @@ function getLayerGainMult(layer) {
|
||||||
case "ba":
|
case "ba":
|
||||||
if (player.sp.upgrades.includes(12)) mult = mult.times(LAYER_UPGS.sp[12].currently())
|
if (player.sp.upgrades.includes(12)) mult = mult.times(LAYER_UPGS.sp[12].currently())
|
||||||
break;
|
break;
|
||||||
|
case "sp":
|
||||||
|
if (player.sp.upgrades.includes(24)) mult = mult.times(LAYER_UPGS.sp[24].currently())
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return mult
|
return mult
|
||||||
}
|
}
|
||||||
|
@ -2668,7 +2697,7 @@ const H_CHALLS = {
|
||||||
unl: function() { return player.h.challs.includes(11) },
|
unl: function() { return player.h.challs.includes(11) },
|
||||||
goal: new Decimal("1e840"),
|
goal: new Decimal("1e840"),
|
||||||
reward: "Quirk gain is boosted by your Quirk Layers",
|
reward: "Quirk gain is boosted by your Quirk Layers",
|
||||||
currently: function() { return Decimal.pow(1.5, player.q.layers) },
|
currently: function() { return Decimal.pow(1.5, player.q.layers.times(player.sp.upgrades.includes(22)?250:1)) },
|
||||||
effDisp: function(x) { return format(x)+"x" },
|
effDisp: function(x) { return format(x)+"x" },
|
||||||
},
|
},
|
||||||
21: {
|
21: {
|
||||||
|
@ -2677,7 +2706,7 @@ const H_CHALLS = {
|
||||||
unl: function() { return player.h.challs.includes(12) },
|
unl: function() { return player.h.challs.includes(12) },
|
||||||
goal: new Decimal("1e1200"),
|
goal: new Decimal("1e1200"),
|
||||||
reward: "Hindrance Spirit & Quirks make Time Capsules & Space Energy cheaper.",
|
reward: "Hindrance Spirit & Quirks make Time Capsules & Space Energy cheaper.",
|
||||||
currently: function() { return player.h.points.plus(player.q.points).div(2).plus(1).pow(1000) },
|
currently: function() { return player.h.points.plus(player.q.points).div(2).plus(1).pow(1000).pow(player.sp.upgrades.includes(22)?250:1) },
|
||||||
effDisp: function(x) { return format(x)+"x cheaper" },
|
effDisp: function(x) { return format(x)+"x cheaper" },
|
||||||
},
|
},
|
||||||
22: {
|
22: {
|
||||||
|
@ -2936,7 +2965,8 @@ function getSpellPower(x) {
|
||||||
if (player.m.upgrades.includes(21) && (x==2||x==3)) power = power.times(LAYER_UPGS.m[21].currently())
|
if (player.m.upgrades.includes(21) && (x==2||x==3)) power = power.times(LAYER_UPGS.m[21].currently())
|
||||||
if (player.m.upgrades.includes(22) && (x==2)) power = power.times(10)
|
if (player.m.upgrades.includes(22) && (x==2)) power = power.times(10)
|
||||||
if (player.m.upgrades.includes(41)) power = power.times(player.m.casted[x].max(1).log10().plus(1).log10().div(5).plus(1))
|
if (player.m.upgrades.includes(41)) power = power.times(player.m.casted[x].max(1).log10().plus(1).log10().div(5).plus(1))
|
||||||
return power;
|
if (player.sp.upgrades.includes(23)) power = power.times(LAYER_UPGS.sp[23].currently())
|
||||||
|
return power.max(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSpellEff(x) {
|
function getSpellEff(x) {
|
||||||
|
@ -3032,6 +3062,7 @@ function getSuperGenPowerGainMult() {
|
||||||
function addToSGBase() {
|
function addToSGBase() {
|
||||||
let toAdd = new Decimal(0)
|
let toAdd = new Decimal(0)
|
||||||
if (player.ba.upgrades.includes(23)) toAdd = toAdd.plus(LAYER_UPGS.ba[23].currently())
|
if (player.ba.upgrades.includes(23)) toAdd = toAdd.plus(LAYER_UPGS.ba[23].currently())
|
||||||
|
if (player.sp.upgrades.includes(21)) toAdd = toAdd.plus(LAYER_UPGS.sp[21].currently())
|
||||||
return toAdd
|
return toAdd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3071,7 +3102,7 @@ function gameLoop(diff) {
|
||||||
player.ba.positivity = player.ba.positivity.plus(tmp.layerEffs.ba.pos.times(getPosGainMult()).times(diff)).max(0)
|
player.ba.positivity = player.ba.positivity.plus(tmp.layerEffs.ba.pos.times(getPosGainMult()).times(diff)).max(0)
|
||||||
player.ba.negativity = player.ba.negativity.plus(tmp.layerEffs.ba.neg.times(getNegGainMult()).times(diff)).max(0)
|
player.ba.negativity = player.ba.negativity.plus(tmp.layerEffs.ba.neg.times(getNegGainMult()).times(diff)).max(0)
|
||||||
}
|
}
|
||||||
if (player.m.unl) for (let i=1;i<=3;i++) player.m.spellTimes[i] = Decimal.sub(player.m.spellTimes[i], diff).max(0).toNumber()
|
if (player.m.unl) for (let i=1;i<=tmp.spellsUnl;i++) player.m.spellTimes[i] = Decimal.sub(player.m.spellTimes[i], diff).max(0).toNumber()
|
||||||
if (player.m.best.gte(3)) {
|
if (player.m.best.gte(3)) {
|
||||||
player.h.points = player.h.points.plus(tmp.resetGain.h.times(diff)).max(0)
|
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)
|
player.q.points = player.q.points.plus(tmp.resetGain.q.times(diff)).max(0)
|
||||||
|
|
Loading…
Reference in a new issue