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
|
@ -14,7 +14,9 @@ addLayer("sp", {
|
|||
type: "normal", // normal: cost to gain currency depends on amount gained. static: cost depends on how much you already have
|
||||
exponent: 0.5, // Prestige currency exponent
|
||||
gainMult() { // Calculate the multiplier for main currency from bonuses
|
||||
return new Decimal(1)
|
||||
let mult = new Decimal(1)
|
||||
if (hasMilestone('f', 1)) mult = mult.mul(3)
|
||||
return mult
|
||||
},
|
||||
gainExp() { // Calculate the exponent on main currency from bonuses
|
||||
return new Decimal(1)
|
||||
|
@ -34,8 +36,8 @@ addLayer("sp", {
|
|||
height: 50,
|
||||
progress() { return player[this.layer].points.div(getEtaCost()) },
|
||||
display() {
|
||||
return "Eta - Level " + getEtaLevel() + " (" + player[this.layer].points + "/" + getEtaCost()
|
||||
+ ")<br>Effect: +" + getEtaEffect() + " to point gen."
|
||||
return "Eta - Level " + format(getEtaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getEtaCost())
|
||||
+ ")<br>Effect: +" + format(getEtaEffect()) + " to point gen."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#107f76"}
|
||||
},
|
||||
|
@ -45,8 +47,8 @@ addLayer("sp", {
|
|||
height: 50,
|
||||
progress() { return player[this.layer].points.div(getThetaCost()) },
|
||||
display() {
|
||||
return "Theta - Level " + getThetaLevel() + " (" + player[this.layer].points + "/" + getThetaCost()
|
||||
+ ")<br>Effect: x" + getThetaEffect() + " to PP."
|
||||
return "Theta - Level " + format(getThetaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getThetaCost())
|
||||
+ ")<br>Effect: x" + format(getThetaEffect()) + " to PP."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#107f76"},
|
||||
unlocked() { return getEtaLevel().gt(0) }
|
||||
|
@ -57,8 +59,8 @@ addLayer("sp", {
|
|||
height: 50,
|
||||
progress() { return player[this.layer].points.div(getIotaCost()) },
|
||||
display() {
|
||||
return "Iota - Level " + getIotaLevel() + " (" + player[this.layer].points + "/" + getIotaCost()
|
||||
+ ")<br>Effect: ^" + getIotaEffect() + " to point gen."
|
||||
return "Iota - Level " + format(getIotaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getIotaCost())
|
||||
+ ")<br>Effect: ^" + format(getIotaEffect()) + " to point gen."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#107f76"},
|
||||
unlocked() { return getThetaLevel().gt(0) }
|
||||
|
@ -69,8 +71,8 @@ addLayer("sp", {
|
|||
height: 50,
|
||||
progress() { return player[this.layer].points.div(getKappaCost()) },
|
||||
display() {
|
||||
return "Kappa - Level " + getKappaLevel() + " (" + player[this.layer].points + "/" + getKappaCost()
|
||||
+ ")<br>Effect: x" + getKappaEffect() + " to softcap."
|
||||
return "Kappa - Level " + format(getKappaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getKappaCost())
|
||||
+ ")<br>Effect: x" + format(getKappaEffect()) + " to softcap."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#107f76"},
|
||||
unlocked() { return getIotaLevel().gt(0) }
|
||||
|
@ -81,8 +83,8 @@ addLayer("sp", {
|
|||
height: 50,
|
||||
progress() { return player[this.layer].points.div(getLambdaCost()) },
|
||||
display() {
|
||||
return "Lambda - Level " + getLambdaLevel() + " (" + player[this.layer].points + "/" + getLambdaCost()
|
||||
+ ")<br>Effect: x" + getLambdaEffect() + " to point gen."
|
||||
return "Lambda - Level " + format(getLambdaLevel()) + " (" + format(player[this.layer].points) + "/" + format(getLambdaCost())
|
||||
+ ")<br>Effect: x" + format(getLambdaEffect()) + " to point gen."
|
||||
},
|
||||
fillStyle: {backgroundColor: "#107f76"},
|
||||
unlocked() { return getKappaLevel().gt(0) }
|
||||
|
@ -94,9 +96,9 @@ addLayer("sp", {
|
|||
effect() { return Decimal.div(getBuyableAmount(this.layer, this.id), 20).add(1) },
|
||||
cost() { return Decimal.pow(getBuyableAmount(this.layer, this.id), 1.2).mul(3).add(20) },
|
||||
display() {
|
||||
return "Increase PP gain.<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 super levels."
|
||||
return "Increase PP gain.<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 super levels."
|
||||
},
|
||||
canAfford() { return Decimal.gte(getTotalSuperLevel(), this.cost()) },
|
||||
buy() { addBuyables(this.layer, this.id, 1) }
|
||||
|
@ -106,9 +108,9 @@ addLayer("sp", {
|
|||
effect() { return Decimal.pow(getBuyableAmount(this.layer, this.id), 1.3).add(1) },
|
||||
cost() { return Decimal.pow(getBuyableAmount(this.layer, this.id), 1.2).mul(5).add(25) },
|
||||
display() {
|
||||
return "Increase point gen.<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 super levels."
|
||||
return "Increase point gen.<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 super levels."
|
||||
},
|
||||
canAfford() { return Decimal.gte(getTotalSuperLevel(), this.cost()) },
|
||||
buy() { addBuyables(this.layer, this.id, 1) }
|
||||
|
@ -128,7 +130,7 @@ addLayer("sp", {
|
|||
"main-display",
|
||||
["row", ["prestige-button", ["clickable", 11]]],
|
||||
"resource-display",
|
||||
["raw-html", () => "You have " + getTotalSuperLevel() + " super level" + (getTotalSuperLevel().eq(1) ? "" : "s") + "."],
|
||||
["raw-html", () => "You have " + format(getTotalSuperLevel()) + " super level" + (getTotalSuperLevel().eq(1) ? "" : "s") + "."],
|
||||
"blank",
|
||||
"blank",
|
||||
["bar", "eta"],
|
||||
|
@ -143,7 +145,7 @@ addLayer("sp", {
|
|||
"main-display",
|
||||
["row", ["prestige-button", ["clickable", 11]]],
|
||||
"resource-display",
|
||||
["raw-html", () => "You have " + getTotalSuperLevel() + " super level" + (getTotalSuperLevel().eq(1) ? "" : "s") + "."],
|
||||
["raw-html", () => "You have " + format(getTotalSuperLevel()) + " super level" + (getTotalSuperLevel().eq(1) ? "" : "s") + "."],
|
||||
"blank",
|
||||
"blank",
|
||||
"buyables",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue