Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
4ca7f16
Update layers.js
cosmology101-active Jul 1, 2024
b8aec22
Update layers.js
cosmology101-active Jul 1, 2024
8ea2331
Update layers.js
cosmology101-active Jul 1, 2024
dc08f59
Update layers.js
cosmology101-active Jul 1, 2024
34fcbd4
Update layers.js
cosmology101-active Jul 1, 2024
e9a657a
Update layers.js
cosmology101-active Jul 1, 2024
d71c96f
Update layers.js
cosmology101-active Jul 1, 2024
703d512
Update layers.js
cosmology101-active Jul 1, 2024
9f37399
Update layers.js
cosmology101-active Jul 1, 2024
6421780
Update layers.js
cosmology101-active Jul 1, 2024
4eafdfd
Update layers.js
cosmology101-active Jul 1, 2024
0aa3fc7
Update mod.js
cosmology101-active Jul 2, 2024
8c3829a
Update layers.js
cosmology101-active Jul 2, 2024
7902cd5
Update mod.js
cosmology101-active Jul 2, 2024
2b96409
Update layers.js
cosmology101-active Jul 2, 2024
eea25a6
Update layers.js
cosmology101-active Jul 2, 2024
13a561c
Update layers.js
cosmology101-active Jul 2, 2024
5f08a83
Update layers.js
cosmology101-active Jul 2, 2024
89e8a5e
Update layers.js
bdcl999 Jul 2, 2024
1136bb1
Update layers.js
bdcl999 Jul 2, 2024
69ce49f
Update layers.js
bdcl999 Jul 2, 2024
7240867
Update layers.js
bdcl999 Jul 2, 2024
8768d71
Update layers.js
bdcl999 Jul 2, 2024
1e75145
Update layers.js
bdcl999 Jul 2, 2024
006db1c
Update layers.js
bdcl999 Jul 2, 2024
0c9773c
Update layers.js
bdcl999 Jul 2, 2024
bbd6f71
Update mod.js
bdcl999 Jul 2, 2024
027f61f
Update layers.js
bdcl999 Jul 2, 2024
17c80b9
Update layers.js
bdcl999 Jul 2, 2024
bebfb9d
Update layers.js
bdcl999 Jul 2, 2024
64e8605
cleanup
cosmology101-active Jul 2, 2024
8aba45d
personalized
cosmology101-active Jul 2, 2024
1331d14
Update layers.js
cosmology101-active Jul 2, 2024
8106604
Update layers.js
cosmology101-active Jul 2, 2024
a1cab3e
Update layers.js
cosmology101-active Jul 2, 2024
8d04d23
grammar fix
cosmology101-active Jul 2, 2024
1c186e1
Customization
cosmology101-active Jul 2, 2024
094993d
Syncing with layers.js update
cosmology101-active Jul 2, 2024
a95f510
Quick balance change
cosmology101-active Jul 2, 2024
185596e
Update layers.js
bdcl999 Jul 2, 2024
996eefd
code formatting
bdcl999 Jul 2, 2024
efa8009
Update mod.js
bdcl999 Jul 2, 2024
9a420df
Update layers.js
bdcl999 Jul 2, 2024
57c82ca
does it work
bdcl999 Jul 2, 2024
d77424a
Update mod.jsbruv
bdcl999 Jul 2, 2024
79b75c0
lol
bdcl999 Jul 2, 2024
7bf7017
Tab test
cosmology101-active Jul 2, 2024
ff9b98c
Update layers.js
cosmology101-active Jul 2, 2024
e280c8d
bug fix
cosmology101-active Jul 3, 2024
854858b
backend ui update
cosmology101-active Jul 3, 2024
87b40d3
Update layers.js
bdcl999 Jul 3, 2024
699510a
Update layers.js
bdcl999 Jul 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 65 additions & 11 deletions js/layers.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,82 @@
addLayer("p", {
name: "prestige", // This is optional, only used in a few places, If absent it just uses the layer id.
symbol: "P", // This appears on the layer's node. Default is the id with the first letter capitalized
addLayer("e", {
name: "element", // This is optional, only used in a few places, If absent it just uses the layer id.
symbol: "E", // This appears on the layer's node. Default is the id with the first letter capitalized
position: 0, // Horizontal position within a row. By default it uses the layer id and sorts in alphabetical order
startData() { return {
unlocked: true,
startData() {
return {
unlocked: true,
points: new Decimal(0),
}},
color: "#4BDC13",
requires: new Decimal(10), // Can be a function that takes requirement increases into account
resource: "prestige points", // Name of prestige currency
baseResource: "points", // Name of resource prestige is based on
color: "#B4DCDF",
requires: new Decimal(10),// Can be a function that takes requirement increases into account
resource: "hydrogen", // Name of prestige currency
baseResource: "Vapor", // Name of resource prestige is based on
baseAmount() {return player.points}, // Get the current amount of baseResource
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
mult = new Decimal(1)
let mult = new Decimal(1)
if (hasUpgrade('e', 13)) {mult = mult.times(upgradeEffect('e', 13))}
return mult
},
gainExp() { // Calculate the exponent on main currency from bonuses
return new Decimal(1)
},
upgrades: {
11: {
title: "this is useless",
description: "buy this and you will have bought this <marquee>jk lol</marquee>",
cost: new Decimal(1),
},
12: {
title: "omg me degening worked",
description: "buy this to support my efforts",
cost: new Decimal(2),
effect() {
return player[this.layer].points.add(1).pow(0.5)
},
effectDisplay() {
return format(upgradeEffect(this.layer, this.id))+"x"
},
},
13: {
title: "idk",
description: "it broke right?",
cost: new Decimal(3),
effect() {
return player.points.add(1).pow(0.1)
},
effectDisplay() {
return format(upgradeEffect(this.layer, this.id))+"x"
},
},
},
tabFormat: {
"Main tab": {
content: [
"main-display",
["prestige-button"],
"blank",
"display-text",
"blank",
["toggle", ["e", "beep"]],
"milestones",
"blank",
"blank",
"upgrades"
]


},
"Other tab": {
content: []

},

},
row: 0, // Row the layer is in on the tree (0 is the first row)
hotkeys: [
{key: "p", description: "P: Reset for prestige points", onPress(){if (canReset(this.layer)) doReset(this.layer)}},
{key: "e", description: "E: Reset for prestige points", onPress(){if (canReset(this.layer)) doReset(this.layer)}},
],
layerShown(){return true}
})
21 changes: 12 additions & 9 deletions js/mod.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
let modInfo = {
name: "The ??? Tree",
name: "The H2O Tree",
id: "mymod",
author: "nobody",
pointsName: "points",
author: "cosmology101 and bdcl",
pointsName: "Vapor",
modFiles: ["layers.js", "tree.js"],

discordName: "",
Expand All @@ -13,14 +13,14 @@ let modInfo = {

// Set your version in num and name
let VERSION = {
num: "0.0",
name: "Literally nothing",
num: "0.1",
name: "Figuring things out",
}

let changelog = `<h1>Changelog:</h1><br>
<h3>v0.0</h3><br>
- Added things.<br>
- Added stuff.`
<h3>v0.1</h3><br>
- Still testing.<br>
- Added three upgrades.`

let winText = `Congratulations! You have reached the end and beaten this game, but for now...`

Expand All @@ -43,6 +43,9 @@ function getPointGen() {
return new Decimal(0)

let gain = new Decimal(1)
if (hasUpgrade('e', 11)) gain = gain.times(2)
if (hasUpgrade('e', 12)) gain = gain.times(upgradeEffect('e', 12))
if (hasUpgrade('e', 13)) gain = gain.times(upgradeEffect('e', 13))
return gain
}

Expand Down Expand Up @@ -76,4 +79,4 @@ function maxTickLength() {
// Use this if you need to undo inflation from an older version. If the version is older than the version that fixed the issue,
// you can cap their current resources with this.
function fixOldSave(oldVersion){
}
}