generated from incremental-social/The-Modding-Tree
Add format()
s and adjust files
This commit is contained in:
parent
56a3b148dd
commit
03b64af854
5 changed files with 73 additions and 75 deletions
js/data
|
@ -23,6 +23,7 @@ addLayer("p", {
|
|||
let mult = new Decimal(1)
|
||||
mult = mult.mul(buyableEffect(this.layer, 11))
|
||||
mult = mult.mul(getThetaEffect())
|
||||
if (hasMilestone('f', 1)) mult = mult.mul(3)
|
||||
return mult
|
||||
},
|
||||
gainExp() { // Calculate the exponent on main currency from bonuses
|
||||
|
@ -50,8 +51,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return player[this.layer].points.div(getAlphaCost()) },
|
||||
display() {
|
||||
return "Alpha - Level " + getAlphaLevel() + " (" + player[this.layer].points + "/" + getAlphaCost()
|
||||
+ ")<br>Effect: +" + getAlphaEffect() + " to point gen."
|
||||
return "Alpha - Level " + format(getAlphaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getAlphaCost())
|
||||
+ ")<br>Effect: +" + format(getAlphaEffect()) + " to point gen."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"}
|
||||
},
|
||||
|
@ -61,8 +62,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return getAlphaLevel().div(getAlphaRankCost()) },
|
||||
display() {
|
||||
return "Alpha - Rank " + getAlphaRank() + " (" + getAlphaLevel() + "/" + getAlphaRankCost()
|
||||
+ ")<br>Effect: +" + getAlphaRankEffect() + " to Alpha effect base."
|
||||
return "Alpha - Rank " + format(getAlphaRank()) + " (" + format(getAlphaLevel()) + "/" + format(getAlphaRankCost())
|
||||
+ ")<br>Effect: +" + format(getAlphaRankEffect()) + " to Alpha effect base."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"},
|
||||
},
|
||||
|
@ -72,8 +73,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return player[this.layer].points.div(getBetaCost()) },
|
||||
display() {
|
||||
return "Beta - Level " + getBetaLevel() + " (" + player[this.layer].points + "/" + getBetaCost()
|
||||
+ ")<br>Effect: x" + getBetaEffect() + " to point gen."
|
||||
return "Beta - Level " + format(getBetaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getBetaCost())
|
||||
+ ")<br>Effect: x" + format(getBetaEffect()) + " to point gen."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"},
|
||||
unlocked() { return getAlphaLevel().gt(0) }
|
||||
|
@ -84,8 +85,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return getBetaLevel().div(getBetaRankCost()) },
|
||||
display() {
|
||||
return "Beta - Rank " + getBetaRank() + " (" + getBetaLevel() + "/" + getBetaRankCost()
|
||||
+ ")<br>Effect: +" + getBetaRankEffect() + " to Beta effect base."
|
||||
return "Beta - Rank " + format(getBetaRank()) + " (" + format(getBetaLevel()) + "/" + format(getBetaRankCost())
|
||||
+ ")<br>Effect: +" + format(getBetaRankEffect()) + " to Beta effect base."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"},
|
||||
unlocked() { return getAlphaLevel().gt(0) }
|
||||
|
@ -96,8 +97,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return player[this.layer].points.div(getGammaCost()) },
|
||||
display() {
|
||||
return "Gamma - Level " + getGammaLevel() + " (" + player[this.layer].points + "/" + getGammaCost()
|
||||
+ ")<br>Effect: x" + getGammaEffect() + " to point gen."
|
||||
return "Gamma - Level " + format(getGammaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getGammaCost())
|
||||
+ ")<br>Effect: x" + format(getGammaEffect()) + " to point gen."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"},
|
||||
unlocked() { return getBetaLevel().gt(0) }
|
||||
|
@ -108,8 +109,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return getGammaLevel().div(getGammaRankCost()) },
|
||||
display() {
|
||||
return "Gamma - Rank " + getGammaRank() + " (" + getGammaLevel() + "/" + getGammaRankCost()
|
||||
+ ")<br>Effect: +" + getGammaRankEffect() + " to Gamma effect exponent."
|
||||
return "Gamma - Rank " + format(getGammaRank()) + " (" + format(getGammaLevel()) + "/" + format(getGammaRankCost())
|
||||
+ ")<br>Effect: +" + format(getGammaRankEffect()) + " to Gamma effect exponent."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"},
|
||||
unlocked() { return getBetaLevel().gt(0) }
|
||||
|
@ -120,8 +121,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return player[this.layer].points.div(getDeltaCost()) },
|
||||
display() {
|
||||
return "Delta - Level " + getDeltaLevel() + " (" + player[this.layer].points + "/" + getDeltaCost()
|
||||
+ ")<br>Effect: x" + getDeltaEffect() + " to point gen."
|
||||
return "Delta - Level " + format(getDeltaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getDeltaCost())
|
||||
+ ")<br>Effect: x" + format(getDeltaEffect()) + " to point gen."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"},
|
||||
unlocked() { return getGammaLevel().gt(0) }
|
||||
|
@ -132,8 +133,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return getDeltaLevel().div(getDeltaRankCost()) },
|
||||
display() {
|
||||
return "Delta - Rank " + getDeltaRank() + " (" + getDeltaLevel() + "/" + getDeltaRankCost()
|
||||
+ ")<br>Effect: +" + getDeltaRankEffect() + " to Delta effect base."
|
||||
return "Delta - Rank " + format(getDeltaRank()) + " (" + format(getDeltaLevel()) + "/" + format(getDeltaRankCost())
|
||||
+ ")<br>Effect: +" + format(getDeltaRankEffect()) + " to Delta effect base."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"},
|
||||
unlocked() { return getGammaLevel().gt(0) }
|
||||
|
@ -144,8 +145,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return player[this.layer].points.div(getEpsilonCost()) },
|
||||
display() {
|
||||
return "Epsilon - Level " + getEpsilonLevel() + " (" + player[this.layer].points + "/" + getEpsilonCost()
|
||||
+ ")<br>Effect: ^" + getEpsilonEffect() + " to point gen."
|
||||
return "Epsilon - Level " + format(getEpsilonLevel()) + " (" + format(player[this.layer].points) + "/" + format(getEpsilonCost())
|
||||
+ ")<br>Effect: ^" + format(getEpsilonEffect()) + " to point gen."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"},
|
||||
unlocked() { return getDeltaLevel().gt(0) }
|
||||
|
@ -156,8 +157,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return getEpsilonLevel().div(getEpsilonRankCost()) },
|
||||
display() {
|
||||
return "Epsilon - Rank " + getEpsilonRank() + " (" + getEpsilonLevel() + "/" + getEpsilonRankCost()
|
||||
+ ")<br>Effect: +" + getEpsilonRankEffect() + " to Epsilon effect base."
|
||||
return "Epsilon - Rank " + format(getEpsilonRank()) + " (" + format(getEpsilonLevel()) + "/" + format(getEpsilonRankCost())
|
||||
+ ")<br>Effect: +" + format(getEpsilonRankEffect()) + " to Epsilon effect base."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"},
|
||||
unlocked() { return getDeltaLevel().gt(0) }
|
||||
|
@ -168,8 +169,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return player[this.layer].points.div(getZetaCost()) },
|
||||
display() {
|
||||
return "Zeta - Level " + getZetaLevel() + " (" + player[this.layer].points + "/" + getZetaCost()
|
||||
+ ")<br>Effect: x" + getZetaEffect() + " to point gen."
|
||||
return "Zeta - Level " + format(getZetaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getZetaCost())
|
||||
+ ")<br>Effect: x" + format(getZetaEffect()) + " to point gen."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"},
|
||||
unlocked() { return getEpsilonLevel().gt(0) }
|
||||
|
@ -180,8 +181,8 @@ addLayer("p", {
|
|||
height: 50,
|
||||
progress() { return getZetaLevel().div(getZetaRankCost()) },
|
||||
display() {
|
||||
return "Zeta - Rank " + getZetaRank() + " (" + getZetaLevel() + "/" + getZetaRankCost()
|
||||
+ ")<br>Effect: +" + getZetaRankEffect() + " to Zeta effect base."
|
||||
return "Zeta - Rank " + format(getZetaRank()) + " (" + format(getZetaLevel()) + "/" + format(getZetaRankCost())
|
||||
+ ")<br>Effect: +" + format(getZetaRankEffect()) + " to Zeta effect base."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#0c6949"},
|
||||
unlocked() { return getEpsilonLevel().gt(0) }
|
||||
|
@ -193,37 +194,33 @@ addLayer("p", {
|
|||
effect() { return Decimal.pow(1.1, getBuyableAmount(this.layer, this.id)) },
|
||||
cost() { return Decimal.pow(getBuyableAmount(this.layer, this.id), 1.2).mul(5).add(50) },
|
||||
display() {
|
||||
return "Increase progress point gain.<br><br>Amount: " + getBuyableAmount(this.layer, this.id)
|
||||
+ ".<br>Effect: x" + this.effect(getBuyableAmount(this.layer, this.id)) + ".<br>Cost: "
|
||||
+ this.cost(getBuyableAmount(this.layer, this.id)) + " total levels."
|
||||
return "Increase progress point gain.<br><br>Amount: " + format(getBuyableAmount(this.layer, this.id))
|
||||
+ ".<br>Effect: x" + format(this.effect(getBuyableAmount(this.layer, this.id))) + ".<br>Cost: "
|
||||
+ format(this.cost(getBuyableAmount(this.layer, this.id))) + " total levels."
|
||||
},
|
||||
canAfford() { return Decimal.gte(getTotalLevel(), this.cost()) },
|
||||
buy() { addBuyables(this.layer, this.id, 1) }
|
||||
},
|
||||
12: {
|
||||
title: "Rebased",
|
||||
effect() { return Decimal.add(
|
||||
getBuyableAmount(this.layer, this.id), hasUpgrade('f', 21) ? 2 : 0
|
||||
).pow_base(0.95) },
|
||||
effect() { return Decimal.add(getBuyableAmount(this.layer, this.id), hasUpgrade('f', 21) ? 2 : 0).pow_base(0.95) },
|
||||
cost() { return Decimal.pow(getBuyableAmount(this.layer, this.id), 1.4).mul(7).add(80) },
|
||||
display() {
|
||||
return "Decrease Gamma effect base.<br><br>Amount: " + getBuyableAmount(this.layer, this.id)
|
||||
+ ".<br>Effect: ^" + this.effect(getBuyableAmount(this.layer, this.id)) + ".<br>Cost: "
|
||||
+ this.cost(getBuyableAmount(this.layer, this.id)) + " total levels."
|
||||
return "Decrease Gamma effect base.<br><br>Amount: " + format(getBuyableAmount(this.layer, this.id))
|
||||
+ ".<br>Effect: ^" + format(this.effect(getBuyableAmount(this.layer, this.id))) + ".<br>Cost: "
|
||||
+ format(this.cost(getBuyableAmount(this.layer, this.id))) + " total levels."
|
||||
},
|
||||
canAfford() { return Decimal.gte(getTotalLevel(), this.cost()) },
|
||||
buy() { addBuyables(this.layer, this.id, 1) }
|
||||
},
|
||||
13: {
|
||||
title: "Shorter bars",
|
||||
effect() { return Decimal.add(
|
||||
getBuyableAmount(this.layer, this.id), hasUpgrade('f', 22) ? 2 : 0
|
||||
).pow_base(0.98) },
|
||||
effect() { return Decimal.add(getBuyableAmount(this.layer, this.id), hasUpgrade('f', 22) ? 2 : 0).pow_base(0.98) },
|
||||
cost() { return Decimal.pow(getBuyableAmount(this.layer, this.id), 1.6).mul(10).add(100) },
|
||||
display() {
|
||||
return "Decrease all level costs.<br><br>Amount: " + getBuyableAmount(this.layer, this.id)
|
||||
+ ".<br>Effect: ^" + this.effect(getBuyableAmount(this.layer, this.id)) + ".<br>Cost: "
|
||||
+ this.cost(getBuyableAmount(this.layer, this.id)) + " total levels."
|
||||
return "Decrease all level costs.<br><br>Amount: " + format(getBuyableAmount(this.layer, this.id))
|
||||
+ ".<br>Effect: ^" + format(this.effect(getBuyableAmount(this.layer, this.id))) + ".<br>Cost: "
|
||||
+ format(this.cost(getBuyableAmount(this.layer, this.id))) + " total levels."
|
||||
},
|
||||
canAfford() { return Decimal.gte(getTotalLevel(), this.cost()) },
|
||||
buy() { addBuyables(this.layer, this.id, 1) }
|
||||
|
@ -243,8 +240,8 @@ addLayer("p", {
|
|||
"main-display",
|
||||
["row", ["prestige-button", ["clickable", 11]]],
|
||||
"resource-display",
|
||||
["raw-html", () => "You have " + getTotalLevel() + " level" + (getTotalLevel().eq(1) ? "" : "s") + "."],
|
||||
["raw-html", () => "You have " + getTotalRank() + " rank" + (getTotalRank().eq(1) ? "" : "s") + "."],
|
||||
["raw-html", () => "You have " + format(getTotalLevel()) + " level" + (getTotalLevel().eq(1) ? "" : "s") + "."],
|
||||
["raw-html", () => "You have " + format(getTotalRank()) + " rank" + (getTotalRank().eq(1) ? "" : "s") + "."],
|
||||
"blank",
|
||||
"blank",
|
||||
["bar", "alpha"],
|
||||
|
@ -260,8 +257,8 @@ addLayer("p", {
|
|||
"main-display",
|
||||
["row", ["prestige-button", ["clickable", 11]]],
|
||||
"resource-display",
|
||||
["raw-html", () => "You have " + getTotalLevel() + " level" + (getTotalLevel().eq(1) ? "" : "s") + "."],
|
||||
["raw-html", () => "You have " + getTotalRank() + " rank" + (getTotalRank().eq(1) ? "" : "s") + "."],
|
||||
["raw-html", () => "You have " + format(getTotalLevel()) + " level" + (getTotalLevel().eq(1) ? "" : "s") + "."],
|
||||
["raw-html", () => "You have " + format(getTotalRank()) + " rank" + (getTotalRank().eq(1) ? "" : "s") + "."],
|
||||
"blank",
|
||||
"blank",
|
||||
["bar", "alphaRank"],
|
||||
|
@ -278,8 +275,8 @@ addLayer("p", {
|
|||
"main-display",
|
||||
["row", ["prestige-button", ["clickable", 11]]],
|
||||
"resource-display",
|
||||
["raw-html", () => "You have " + getTotalLevel() + " level" + (getTotalLevel().eq(1) ? "" : "s") + "."],
|
||||
["raw-html", () => "You have " + getTotalRank() + " rank" + (getTotalRank().eq(1) ? "" : "s") + "."],
|
||||
["raw-html", () => "You have " + format(getTotalLevel()) + " level" + (getTotalLevel().eq(1) ? "" : "s") + "."],
|
||||
["raw-html", () => "You have " + format(getTotalRank()) + " rank" + (getTotalRank().eq(1) ? "" : "s") + "."],
|
||||
"blank",
|
||||
"blank",
|
||||
"buyables"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue