From 26db2d6726f54bf77bbff746d549a2d943d163ad Mon Sep 17 00:00:00 2001
From: wktr <94459237+WiktorProj@users.noreply.github.com>
Date: Sun, 15 Sep 2024 11:55:36 +0200
Subject: [PATCH] 0.5
---
MeTMT/js/layers.js | 97 +++++++++++++++++++++++++++++++++++++---------
MeTMT/js/mod.js | 14 ++++---
2 files changed, 88 insertions(+), 23 deletions(-)
diff --git a/MeTMT/js/layers.js b/MeTMT/js/layers.js
index fd852ed..f347f29 100644
--- a/MeTMT/js/layers.js
+++ b/MeTMT/js/layers.js
@@ -59,11 +59,15 @@ addLayer("+", {
["display-text",
function() { if (player['+'].points.gte(17)) {return "- Add a number to the base point gain based off of points (Currently:
+" + format(player.points.pow(0.025)) + "
)"} },],
["display-text",
- function() { if (player['+'].points.gte(18)) {return "- Gain " + format(player['p'].points.add(1).pow(0.0075).log(2)) + "%
ultra points per second"} },],
+ function() { if (player['+'].points.gte(18)) {return "- Gain " + format(player['p'].points.add(1).pow(0.0075).log(2)) + "%
ultra points per second"} },],
["display-text",
function() { if (player['+'].points.gte(19)) {return "- Infinity layer, 4 upgrades for it"} },],
["display-text",
function() { if (player['+'].points.gte(20)) {return "- +3 Upgrades for infinity layer"} },],
+ ["display-text",
+ function() { if (player['+'].points.gte(21)) {return "- ^0.96 point gain"} },],
+ ["display-text",
+ function() { if (player['+'].points.gte(2)) {return `- Start gaining omega, and unlock omega upgrades`} },],
["display-text",
"
Please like this game the colors took so long ;-;
"
],
@@ -76,7 +80,7 @@ addLayer("+", {
help: {
title: "Help for colors and sizes",
body() {
- 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"
+ return "Big text
means that something is dynamic
Colored text with a shadow mean layers/layer points
There are currently 8 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
` + (player['+'].points.gte(19) ? "Omega" : makeid(5)) + "
Colored dynamic text means that it uses a formula based off of the colors above"
},
},
cap: {
@@ -234,6 +238,16 @@ addLayer("a", {
done() {return overginded}
},
32: {
+ name: "ω",
+ tooltip: "Get 1 omega",
+ done() {return player.OMEGA.gte(1)}
+ },
+ 33: {
+ name: "0.5.x complete",
+ tooltip: "Get 1000 omega",
+ done() {return player.OMEGA.gte(1000)}
+ },
+ 34: {
name: "Infinity of infinities",
tooltip: "Get 2^1024 infinities",
done() {return player['i'].points.gte(new Decimal(2).pow(1024))}
@@ -714,21 +728,6 @@ addLayer("u", {
if (tmp['u'].buyables[11].canAfford && hasUpgrade("u", 13)) {
addBuyables('u', 11, 1)
}
- if (tmp['u'].buyables[11].canAfford && hasUpgrade("u", 13)) {
- addBuyables('u', 11, 1)
- }
- if (tmp['u'].buyables[11].canAfford && hasUpgrade("u", 13)) {
- addBuyables('u', 11, 1)
- }
- if (tmp['u'].buyables[11].canAfford && hasUpgrade("u", 13)) {
- addBuyables('u', 11, 1)
- }
- if (tmp['u'].buyables[11].canAfford && hasUpgrade("u", 13)) {
- addBuyables('u', 11, 1)
- }
- if (tmp['u'].buyables[11].canAfford && hasUpgrade("u", 13)) {
- addBuyables('u', 11, 1)
- }
},
row: 3, // Row the layer is in on the tree (0 is the first row)
hotkeys: [
@@ -753,6 +752,29 @@ addLayer("i", {
baseAmount() {return player.u.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.1, // Prestige currency exponent
+ tabFormat: {
+ "Infinity": {
+ content: [
+ "main-display",
+ "prestige-button",
+ "resource-display",
+ "blank",
+ "upgrades"
+ ],
+ },
+ "Omega": {
+ content: [
+ "main-display",
+ "prestige-button",
+ "resource-display",
+ "blank",
+ ["display-text", function() {return `You have ${format(player.OMEGA)}
omega` }],
+ ["display-text", function() {return `You have gaining ${format(player.OMEGAGAIN)} omega per second` }],
+ ["display-text", function() {return `You need 22 additions to gain omega` }],
+ ["display-text", function() {return `Omega is boosting point gain by x${format(player.OMEGA.pow(0.05))}` }]
+ ],
+ },
+ },
upgrades: {
11: {
title: "The infinity",
@@ -792,10 +814,49 @@ addLayer("i", {
},
17: {
title: "Nice",
- description: "x69,420 point gain, oh, and win",
+ description: "x69,420 point gain, oh, and win",
cost: new Decimal(1000),
unlocked() {return player['+'].points.gte(20)}
},
+ 1001: {
+ pay() {
+ player.OMEGA = player.OMEGA.sub(10)
+ },
+ canAfford() {
+ return player.OMEGA.gte(10)
+ },
+ unlocked() {return player['+'].points.gte(22)},
+ fullDisplay() {return `Omega
x2 omega gain
Cost: ${format(new Decimal(10))} omega` },
+ },
+ 1002: {
+ pay() {
+ player.OMEGA = player.OMEGA.sub(150)
+ },
+ canAfford() {
+ return player.OMEGA.gte(150)
+ },
+ unlocked() {return player['+'].points.gte(22)},
+ fullDisplay() {return `Extraordinary
x3 omega gain
Cost: ${format(new Decimal(150))} omega` },
+ },
+ 1003: {
+ pay() {
+ player.OMEGA = player.OMEGA.sub(250)
+ },
+ canAfford() {
+ return player.OMEGA.gte(250)
+ },
+ unlocked() {return player['+'].points.gte(22)},
+ fullDisplay() {return `Round
+4 omega gain
Cost: ${format(new Decimal(250))} omega` },
+ },
+ },
+ automate() {
+ let gain = new Decimal(0)
+ if (player['+'].points.gte(22)) gain = new Decimal(1)
+ if (hasUpgrade('i', 1001)) gain = gain.times(2)
+ if (hasUpgrade('i', 1002)) gain = gain.times(3)
+ if (hasUpgrade('i', 1003)) gain = gain.add(4)
+ player.OMEGAGAIN = gain
+ player.OMEGA = player.OMEGA.add(player.OMEGAGAIN.div(20))
},
gainMult() { // Calculate the multiplier for main currency from bonuses
mult = new Decimal(1)
diff --git a/MeTMT/js/mod.js b/MeTMT/js/mod.js
index 8f4c1ff..26e9510 100644
--- a/MeTMT/js/mod.js
+++ b/MeTMT/js/mod.js
@@ -13,15 +13,15 @@ let modInfo = {
// Set your version in num and name
let VERSION = {
- num: "0.4½.2",
- name: "The option update T2",
+ num: "0.5",
+ name: "ωOMEGAω",
}
let changelog = `galaxy has a changelog you don't need this one!`
let winText = `Wow! You won! But there will be more soon...`
-let additionCap = 20
+let additionCap = 22
// If you add new functions anywhere inside of a layer, and those functions have an effect when called, add them here.
// (The ones here are examples, all official functions are already taken care of)
@@ -68,17 +68,21 @@ function getPointGen() {
if (hasUpgrade('i', 14)) gain = gain.times(5)
if (hasUpgrade('i', 16)) gain = gain.times(9)
if (hasUpgrade('i', 17)) gain = gain.times(69420)
+ if (player['+'].points.gte(21)) gain = gain.pow(0.96)
+ if (player.OMEGA.gte(1)) gain = gain.times(player.OMEGA.pow(0.05))
return gain
}
// You can add non-layer related variables that should to into "player" and be saved here, along with default values
function addedPlayerData() { return {
+ OMEGA: new Decimal(0),
+ OMEGAGAIN: new Decimal(0)
}}
// Display extra things at the top of the page
var displayThings = [
function() {return 'You have ' + format(player['+'].points, 0) + ' additions'},
- "Endgame: infinity upgrade 17",
+ "Endgame: 1,000 omega",
function() {
if (player.points.lte(100)) {
return "If 1 point is a centimeter, you'd have " + format(player.points) + "cm"
@@ -125,7 +129,7 @@ var displayThings = [
// Determines when the game "ends"
function isEndgame() {
- return hasUpgrade('i', 17)
+ return player.OMEGA.gte(1000)
}