Skip to content

Commit

Permalink
0.4½
Browse files Browse the repository at this point in the history
  • Loading branch information
WiktorProj committed Sep 8, 2024
1 parent 9909e9d commit 678cf8d
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 2,760 deletions.
16 changes: 5 additions & 11 deletions MeTMT/js/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,6 @@ addLayer("+", {
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 "<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" },
}
},
Expand Down Expand Up @@ -212,6 +201,11 @@ addLayer("a", {
tooltip: "Get infinity upgrade 17",
done() {return hasUpgrade('i', 17)}
},
31: {
name: "Infinity of infinities",
tooltip: "Get 2^1024 infinities",
done() {return player['i'].points.gte(new Decimal(2).pow(1024))}
},
},
tabFormat: {
"Achievements": {
Expand Down
28 changes: 25 additions & 3 deletions MeTMT/js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ let modInfo = {

// Set your version in num and name
let VERSION = {
num: "0.4.2",
name: "NoGap T2",
num: "0.4½",
name: "The option update",
}

let changelog = `galaxy has a changelog you don't need this one!`
Expand Down Expand Up @@ -135,7 +135,29 @@ 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
switch (options.maxTickLen) {
case "1h":
return 60*60
break;
case "3h":
return 60*60*3
break;
case "10h":
return 60*60*10
break;
case "10s":
return 10
break;
case "1m":
return 60
break;
case "5m":
return 60*5
break;
case "30m":
return 60*30
break;
}
}

// Use this if you need to undo inflation from an older version. If the version is older than the version that fixed the issue,
Expand Down
Loading

0 comments on commit 678cf8d

Please sign in to comment.