diff --git a/MeTMT/js/layers.js b/MeTMT/js/layers.js index 267ee92..1b0d527 100644 --- a/MeTMT/js/layers.js +++ b/MeTMT/js/layers.js @@ -62,11 +62,32 @@ addLayer("+", { ["display-text", function() { if (player['+'].points.gte(19)) {return "- Infinity layer, 4 upgrades for it"} },], ["display-text", - "

Please like this game the colors took so long ;-;" - ] + function() { if (player['+'].points.gte(20)) {return "- +3 Upgrades for infinity layer"} },], + ["display-text", + "

Please like this game the colors took so long ;-;

" + ], + ['infobox', 'help'] ], }, }, + infoboxes: { + help: { + title: "Help for colors and sizes", + body() { + function makeid(length) { + let result = ''; + const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????'; + const charactersLength = characters.length; + let counter = 0; + while (counter < length) { + result += characters.charAt(Math.floor(Math.random() * charactersLength)); + counter += 1; + } + return result; + } + return "

Big text

means that something is dynamic
Colored text with a shadow mean layers/layer points
There are currently 7 colors that mean something:
Points
Addition layer
" + (player['+'].points.gte(1) ? "Prestige" : makeid(8)) + " layer
" + (player['+'].points.gte(5) ? "Rebirth" : makeid(7)) + " layer
" + (player['+'].points.gte(8) ? "Mega" : makeid(4)) + " layer
" + (player['+'].points.gte(11) ? "Ultra" : makeid(5)) + " layer
" + (player['+'].points.gte(19) ? "Infinity" : makeid(8)) + " layer
Colored dynamic text means that it uses a formula based off of the colors above" }, + } + }, gainMult() { // Calculate the multiplier for main currency from bonuses mult = new Decimal(1) if (hasUpgrade('p', 21)) mult = mult.div(2) @@ -630,7 +651,7 @@ addLayer("u", { }, buyables: { 11: { - cost(x) { return new Decimal(1).mul(x).pow(15) }, + cost(x) { return new Decimal(2).mul(x.pow(2)).pow(15).pow(3) }, title: "Ultra Buyable!", display() { return "Amount: " + format(getBuyableAmount(this.layer, this.id).floor()) + "\nCost: " + format(this.cost().floor()) + " ulra points\nEffect: x" + format(this.effect()) + " point gain"}, canAfford() { return player[this.layer].points.gte(this.cost()) }, @@ -639,7 +660,7 @@ addLayer("u", { setBuyableAmount(this.layer, this.id, getBuyableAmount(this.layer, this.id).add(1)) }, effect() { - return new Decimal(1).mul(this.cost().sub(1)).times(50).pow(0.9).add(1) + return new Decimal(1).mul(this.cost().sub(1)).times(50 + (hasUpgrade('i', 16) ? 50 : 0)).pow(0.9).add(1) }, unlocked() {return player['+'].points.gte(12)} }, @@ -647,6 +668,7 @@ addLayer("u", { gainMult() { // Calculate the multiplier for main currency from bonuses mult = new Decimal(1) if (hasUpgrade('i', 13)) mult = mult.times(2) + if (hasUpgrade('i', 15)) mult = mult.times(2) return mult }, gainExp() { // Calculate the exponent on main currency from bonuses @@ -706,13 +728,32 @@ addLayer("i", { }, 14: { title: "The final upgrade for v0.3", - description: "Nothing, just nothing", + description: "Does something?", cost: new Decimal(10), unlocked() {return player['+'].points.gte(19)} }, + 15: { + title: "Exchange", + description: "/2 infinity gain, x2 ultra gain", + cost: new Decimal(25), + unlocked() {return player['+'].points.gte(20)} + }, + 16: { + title: "UltraBuff", + description: "Boost the ultra byable effect", + cost: new Decimal(150), + unlocked() {return player['+'].points.gte(20)} + }, + 17: { + title: "Nice", + description: "x69,420 point gain, oh, and win", + cost: new Decimal(1000), + unlocked() {return player['+'].points.gte(20)} + }, }, gainMult() { // Calculate the multiplier for main currency from bonuses mult = new Decimal(1) + if (hasUpgrade('i', 15)) mult = mult.times(0.5) return mult }, gainExp() { // Calculate the exponent on main currency from bonuses diff --git a/MeTMT/js/mod.js b/MeTMT/js/mod.js index aaa956b..5c0ef99 100644 --- a/MeTMT/js/mod.js +++ b/MeTMT/js/mod.js @@ -13,8 +13,8 @@ let modInfo = { // Set your version in num and name let VERSION = { - num: "0.4", - name: "NoGap", + num: "0.4.1", + name: "NoGap T1", } let changelog = `galaxy has a changelog you don't need this one!` @@ -61,6 +61,8 @@ function getPointGen() { if (player['+'].points.gte(13)) gain = gain.times(1.5) if (player['+'].points.gte(16)) gain = gain.times(player['+'].points.pow(1.1)) if (hasUpgrade('i', 12)) gain = gain.times(2) + if (hasUpgrade('i', 14)) gain = gain.times(5) + if (hasUpgrade('i', 17)) gain = gain.times(69420) return gain } @@ -71,7 +73,7 @@ function addedPlayerData() { return { // Display extra things at the top of the page var displayThings = [ function() {return 'You have ' + format(player['+'].points, 0) + ' additions'}, - "Endgame: infinity upgrade 14", + "Endgame: infinity upgrade 17", function() { if (player.points.lte(100)) { return "If 1 point is a centimeter, you'd have " + format(player.points) + "cm" @@ -118,7 +120,7 @@ var displayThings = [ // Determines when the game "ends" function isEndgame() { - return hasUpgrade('i', 14) + return hasUpgrade('i', 17) }