Skip to content

Commit

Permalink
0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
WiktorProj committed Sep 15, 2024
1 parent d4df967 commit 26db2d6
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 23 deletions.
97 changes: 79 additions & 18 deletions MeTMT/js/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,15 @@ addLayer("+", {
["display-text",
function() { if (player['+'].points.gte(17)) {return "- Add a number to the base <span style=\"color: rgb(255, 255, 255); text-shadow: rgb(255, 255, 255) 0px 0px 10px;\">point</span> gain based off of <span style=\"color: rgb(255, 255, 255); text-shadow: rgb(255, 255, 255) 0px 0px 10px;\">points</span> (Currently: <h3 style=\"color: rgb(255,255,255); text-shadow: rgb(255,255,255) 0px 0px 10px;\">+" + format(player.points.pow(0.025)) + "</h3>)"} },],
["display-text",
function() { if (player['+'].points.gte(18)) {return "- Gain <h3 style=\"color: rgb(0,255,0); text-shadow: rgb(0,255,0) 0px 0px 10px;\">" + format(player['p'].points.add(1).pow(0.0075).log(2)) + "%</h3> ultra points per second"} },],
function() { if (player['+'].points.gte(18)) {return "- Gain <h3 style=\"color: rgb(0,255,0); text-shadow: rgb(0,255,0) 0px 0px 10px;\">" + format(player['p'].points.add(1).pow(0.0075).log(2)) + "%</h3> <span style=\"color: rgb(255, 0, 255); text-shadow: rgb(255, 0, 255) 0px 0px 10px;\">ultra</span> points per second"} },],
["display-text",
function() { if (player['+'].points.gte(19)) {return "- <span style=\"color: rgb(119, 119, 119); text-shadow: rgb(119, 119, 119) 0px 0px 10px;\">Infinity</span> layer, 4 upgrades for it"} },],
["display-text",
function() { if (player['+'].points.gte(20)) {return "- +3 Upgrades for <span style=\"color: rgb(119, 119, 119); text-shadow: rgb(119, 119, 119) 0px 0px 10px;\">infinity</span> layer"} },],
["display-text",
function() { if (player['+'].points.gte(21)) {return "- ^0.96 <span style=\"color: rgb(255, 255, 255); text-shadow: rgb(255, 255, 255) 0px 0px 10px;\">point</span> gain"} },],
["display-text",
function() { if (player['+'].points.gte(2)) {return `- Start gaining <span style="color: hsl(${(player.timePlayed * 15) % 360}, 100%, 50%); text-shadow: hsl(${(player.timePlayed * 15) % 360}, 100%, 50%) 0px 0px 10px;">omega</span>, and unlock <span style="color: hsl(${(player.timePlayed * 15) % 360}, 100%, 50%); text-shadow: hsl(${(player.timePlayed * 15) % 360}, 100%, 50%) 0px 0px 10px;">omega</span> upgrades`} },],
["display-text",
"<br><br>Please like this game the colors took so long ;-;<br><br>"
],
Expand All @@ -76,7 +80,7 @@ addLayer("+", {
help: {
title: "Help for colors and sizes",
body() {
return "<h3>Big text</h3> means that something is dynamic<br><span style=\"color: rgb(255, 255, 255); text-shadow: rgb(255, 255, 255) 0px 0px 10px;\">Colored text with a shadow</span> mean layers/layer points<br>There are currently 7 colors that mean something:<br><span style=\"color: rgb(255, 255, 255); text-shadow: rgb(255, 255, 255) 0px 0px 10px;\">Points</span><br><span style=\"color: rgb(95, 111, 127); text-shadow: rgb(95, 111, 127) 0px 0px 10px;\">Addition layer</span><br><span style=\"color: rgb(0, 255, 0); text-shadow: rgb(0, 255, 0) 0px 0px 10px;\">" + (player['+'].points.gte(1) ? "Prestige" : makeid(8)) + " layer</span><br><span style=\"color: rgb(0, 119, 255); text-shadow: rgb(0, 119, 255) 0px 0px 10px;\">" + (player['+'].points.gte(5) ? "Rebirth" : makeid(7)) + " layer</span><br><span style=\"color: rgb(255, 119, 0); text-shadow: rgb(255, 119, 0) 0px 0px 10px;\">" + (player['+'].points.gte(8) ? "Mega" : makeid(4)) + " layer</span><br><span style=\"color: rgb(255, 0, 255); text-shadow: rgb(255, 0, 255) 0px 0px 10px;\">" + (player['+'].points.gte(11) ? "Ultra" : makeid(5)) + " layer</span><br><span style=\"color: rgb(119, 119, 119); text-shadow: rgb(119, 119, 119) 0px 0px 10px;\">" + (player['+'].points.gte(19) ? "Infinity" : makeid(8)) + " layer</span><br>Colored dynamic text means that it uses a formula based off of the colors above"
return "<h3>Big text</h3> means that something is dynamic<br><span style=\"color: rgb(255, 255, 255); text-shadow: rgb(255, 255, 255) 0px 0px 10px;\">Colored text with a shadow</span> mean layers/layer points<br>There are currently 8 colors that mean something:<br><span style=\"color: rgb(255, 255, 255); text-shadow: rgb(255, 255, 255) 0px 0px 10px;\">Points</span><br><span style=\"color: rgb(95, 111, 127); text-shadow: rgb(95, 111, 127) 0px 0px 10px;\">Addition layer</span><br><span style=\"color: rgb(0, 255, 0); text-shadow: rgb(0, 255, 0) 0px 0px 10px;\">" + (player['+'].points.gte(1) ? "Prestige" : makeid(8)) + " layer</span><br><span style=\"color: rgb(0, 119, 255); text-shadow: rgb(0, 119, 255) 0px 0px 10px;\">" + (player['+'].points.gte(5) ? "Rebirth" : makeid(7)) + " layer</span><br><span style=\"color: rgb(255, 119, 0); text-shadow: rgb(255, 119, 0) 0px 0px 10px;\">" + (player['+'].points.gte(8) ? "Mega" : makeid(4)) + " layer</span><br><span style=\"color: rgb(255, 0, 255); text-shadow: rgb(255, 0, 255) 0px 0px 10px;\">" + (player['+'].points.gte(11) ? "Ultra" : makeid(5)) + " layer</span><br><span style=\"color: rgb(119, 119, 119); text-shadow: rgb(119, 119, 119) 0px 0px 10px;\">" + (player['+'].points.gte(19) ? "Infinity" : makeid(8)) + ` layer</span><br><span style="color: hsl(${(player.timePlayed * 15) % 360}, 100%, 50%); text-shadow: hsl(${(player.timePlayed * 15) % 360}, 100%, 50%) 0px 0px 10px;">` + (player['+'].points.gte(19) ? "Omega" : makeid(5)) + "</span><br>Colored dynamic text means that it uses a formula based off of the colors above"
},
},
cap: {
Expand Down Expand Up @@ -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))}
Expand Down Expand Up @@ -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: [
Expand All @@ -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 `<span>You have </span><h2 style="color: hsl(${(player.timePlayed * 15) % 360}, 100%, 50%); text-shadow: hsl(${(player.timePlayed * 15) % 360}, 100%, 50%) 0px 0px 10px;">${format(player.OMEGA)}</h2> omega</span>` }],
["display-text", function() {return `<span>You have gaining ${format(player.OMEGAGAIN)} omega per second</span>` }],
["display-text", function() {return `<span>You need 22 <span style=\"color: rgb(95, 111, 127); text-shadow: rgb(95, 111, 127) 0px 0px 10px;\">additions</span> to gain omega</span>` }],
["display-text", function() {return `<span>Omega is boosting point gain by x${format(player.OMEGA.pow(0.05))}</span>` }]
],
},
},
upgrades: {
11: {
title: "The infinity",
Expand Down Expand Up @@ -792,10 +814,49 @@ addLayer("i", {
},
17: {
title: "Nice",
description: "x69,420 point gain, oh, and win",
description: "x69,420 point gain<s>, oh, and win</s>",
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 `<h3>Omega</h3><br>x2 omega gain<br><br>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 `<h3>Extraordinary</h3><br>x3 omega gain<br><br>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 `<h3>Round</h3><br>+4 omega gain<br><br>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)
Expand Down
14 changes: 9 additions & 5 deletions MeTMT/js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <i>soon...</i>`

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)
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -125,7 +129,7 @@ var displayThings = [

// Determines when the game "ends"
function isEndgame() {
return hasUpgrade('i', 17)
return player.OMEGA.gte(1000)
}


Expand Down

0 comments on commit 26db2d6

Please sign in to comment.