From 467ee8073b0e8fe1815fcc131d80e4fe599b0d14 Mon Sep 17 00:00:00 2001 From: Gohncena Date: Fri, 14 Jun 2024 21:04:00 -0700 Subject: [PATCH 1/4] Update mod.js --- js/mod.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/mod.js b/js/mod.js index 6175517f6b..da549ea925 100644 --- a/js/mod.js +++ b/js/mod.js @@ -1,7 +1,7 @@ let modInfo = { - name: "The ??? Tree", - id: "mymod", - author: "nobody", + name: "The Number Tree", + id: "JumPsCarE357", + author: "sombody", pointsName: "points", modFiles: ["layers.js", "tree.js"], From e87a64ffc26c00e3accb49490374d7ea99a8a273 Mon Sep 17 00:00:00 2001 From: Gohncena Date: Sat, 15 Jun 2024 09:29:54 -0700 Subject: [PATCH 2/4] b --- js/layers.js | 20 ++++++++++++++------ js/mod.js | 19 ++++++++++--------- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/js/layers.js b/js/layers.js index f9488fb9b0..c4f6dac0a2 100644 --- a/js/layers.js +++ b/js/layers.js @@ -1,14 +1,14 @@ 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 + name: "ZERO", // This is optional, only used in a few places, If absent it just uses the layer id. + symbol: "ZP", // 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, points: new Decimal(0), }}, - color: "#4BDC13", + color: "#0B5725", requires: new Decimal(10), // Can be a function that takes requirement increases into account - resource: "prestige points", // Name of prestige currency + resource: "zero points", // Name of prestige currency baseResource: "points", // 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 @@ -22,7 +22,15 @@ addLayer("p", { }, 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: "a", description: "A: Reset for zero points", onPress(){if (canReset(this.layer)) doReset(this.layer)}}, ], - layerShown(){return true} + layerShown(){return true}, + upgrades: { + 11: { + title: "EXPONENT", + description: "Square your zero gain.", + cost: new Decimal(2), + }, + }, }) + diff --git a/js/mod.js b/js/mod.js index da549ea925..13c6aa4f5d 100644 --- a/js/mod.js +++ b/js/mod.js @@ -7,18 +7,18 @@ let modInfo = { discordName: "", discordLink: "", - initialStartPoints: new Decimal (10), // Used for hard resets and new players - offlineLimit: 1, // In hours + initialStartPoints: new Decimal (0), // Used for hard resets and new players + offlineLimit: 0, // In hours } // Set your version in num and name let VERSION = { - num: "0.0", - name: "Literally nothing", + num: "0.0.1", + name: "IDK", } let changelog = `

Changelog:


-

v0.0


+

v0.0.1


- Added things.
- Added stuff.` @@ -39,10 +39,11 @@ function canGenPoints(){ // Calculate points/sec! function getPointGen() { + if (hasUpgrade('p', 11)) gain = gain.times(2) if(!canGenPoints()) return new Decimal(0) - let gain = new Decimal(1) + let gain = new Decimal(2) return gain } @@ -56,7 +57,7 @@ var displayThings = [ // Determines when the game "ends" function isEndgame() { - return player.points.gte(new Decimal("e280000000")) + return player.points.gte(new Decimal("e100")) } @@ -70,10 +71,10 @@ var backgroundStyle = { // You can change this if you have things that can be messed up by long tick lengths function maxTickLength() { - return(3600) // Default is 1 hour which is just arbitrarily large + return(360) // Default is 1 hour which is just arbitrarily large } // 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){ -} \ No newline at end of file +} From fc967fcf0b20ed920b61e2b77c1c90ac060a8fa7 Mon Sep 17 00:00:00 2001 From: Gohncena Date: Sat, 15 Jun 2024 10:04:23 -0700 Subject: [PATCH 3/4] e --- js/layers.js | 23 ++++++++++++++++------- js/mod.js | 3 ++- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/js/layers.js b/js/layers.js index c4f6dac0a2..5a6831a3ab 100644 --- a/js/layers.js +++ b/js/layers.js @@ -1,18 +1,18 @@ addLayer("p", { name: "ZERO", // This is optional, only used in a few places, If absent it just uses the layer id. - symbol: "ZP", // This appears on the layer's node. Default is the id with the first letter capitalized + symbol: "0P", // 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, points: new Decimal(0), }}, color: "#0B5725", - requires: new Decimal(10), // Can be a function that takes requirement increases into account + requires: new Decimal(16), // Can be a function that takes requirement increases into account resource: "zero points", // Name of prestige currency baseResource: "points", // 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 + exponent: 0.4, // Prestige currency exponent gainMult() { // Calculate the multiplier for main currency from bonuses mult = new Decimal(1) return mult @@ -24,13 +24,22 @@ addLayer("p", { hotkeys: [ {key: "a", description: "A: Reset for zero points", onPress(){if (canReset(this.layer)) doReset(this.layer)}}, ], - layerShown(){return true}, upgrades: { 11: { - title: "EXPONENT", - description: "Square your zero gain.", - cost: new Decimal(2), + title: "ex 1", + description: "Square your point gain.", + cost: new Decimal(1), }, + 12: { + title: "ex 2", + description: "Cube your point gain.", + cost: new Decimal(5) + }, + 21: { + title: "boost", + description: "boost your point gain by zero points.", + cost: new Decimal(15) + } }, }) diff --git a/js/mod.js b/js/mod.js index 13c6aa4f5d..f331cce5c7 100644 --- a/js/mod.js +++ b/js/mod.js @@ -39,11 +39,12 @@ function canGenPoints(){ // Calculate points/sec! function getPointGen() { - if (hasUpgrade('p', 11)) gain = gain.times(2) if(!canGenPoints()) return new Decimal(0) let gain = new Decimal(2) + if (hasUpgrade('p', 11)) gain = gain.pow(2) + if (hasUpgrade('p', 12)) gain = gain.pow(3) return gain } From 0a7c89a8789b1ef4fea57e10c38640c2bfda1936 Mon Sep 17 00:00:00 2001 From: Gohncena <146045294+Gohncena@users.noreply.github.com> Date: Tue, 7 Jan 2025 15:50:21 -0800 Subject: [PATCH 4/4] Update mod.js --- js/mod.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/mod.js b/js/mod.js index f331cce5c7..244e3d61ca 100644 --- a/js/mod.js +++ b/js/mod.js @@ -13,14 +13,16 @@ let modInfo = { // Set your version in num and name let VERSION = { - num: "0.0.1", - name: "IDK", + num: "0.0.1.1", + name: "the e apocalypse", } let changelog = `

Changelog:


+

v0.0.1.1


+ - Added changelog!

v0.0.1


- Added things.
- - Added stuff.` + - Added everything.` let winText = `Congratulations! You have reached the end and beaten this game, but for now...`