Skip to content

Commit 38c2785

Browse files
committed
0.4_1/2.1
1 parent 82d50b7 commit 38c2785

File tree

3 files changed

+38
-12
lines changed

3 files changed

+38
-12
lines changed

MeTMT/js/layers.js

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,29 @@ addLayer("+", {
6666
["display-text",
6767
"<br><br>Please like this game the colors took so long ;-;<br><br>"
6868
],
69-
['infobox', 'help']
69+
['infobox', 'help'],
70+
['infobox', 'cap']
7071
],
7172
},
7273
},
7374
infoboxes: {
7475
help: {
7576
title: "Help for colors and sizes",
7677
body() {
77-
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" },
78+
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"
79+
},
80+
},
81+
cap: {
82+
title: "Addition cap",
83+
body() {
84+
return "<span style=\"color: rgb(95, 111, 127); text-shadow: rgb(95, 111, 127) 0px 0px 10px;\">Addition</span> cap is currently " + format(additionCap)
85+
}
86+
}
87+
},
88+
automate() {
89+
if (player['+'].points.gt(additionCap)) {
90+
player['+'].points = new Decimal(additionCap)
91+
overginded = true
7892
}
7993
},
8094
gainMult() { // Calculate the multiplier for main currency from bonuses
@@ -202,6 +216,11 @@ addLayer("a", {
202216
done() {return hasUpgrade('i', 17)}
203217
},
204218
31: {
219+
name: "You tried ¯\\_(ツ)_/¯",
220+
tooltip: "Try to overgrind for additions",
221+
done() {return overginded}
222+
},
223+
32: {
205224
name: "Infinity of infinities",
206225
tooltip: "Get 2^1024 infinities",
207226
done() {return player['i'].points.gte(new Decimal(2).pow(1024))}

MeTMT/js/mod.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ let modInfo = {
1313

1414
// Set your version in num and name
1515
let VERSION = {
16-
num: "0.4½",
17-
name: "The option update",
16+
num: "0.4½.1",
17+
name: "The option update T1",
1818
}
1919

2020
let changelog = `galaxy has a changelog you don't need this one!`
2121

2222
let winText = `Wow! You won! But there will be more <i>soon...</i>`
2323

24+
let additionCap = 20
25+
2426
// If you add new functions anywhere inside of a layer, and those functions have an effect when called, add them here.
2527
// (The ones here are examples, all official functions are already taken care of)
2628
var doNotCallTheseFunctionsEveryTick = ["blowUpEverything"]
@@ -34,6 +36,8 @@ function canGenPoints(){
3436
return true
3537
}
3638

39+
overginded = false
40+
3741
// Calculate points/sec!
3842
function getPointGen() {
3943
if(!canGenPoints()) return new Decimal(0)

MeTMT/js/utils/NumberFormating.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,17 @@ function standardFormat(decimal) {
147147
if (decimal.eq(0)) return "0"
148148
e = decimal.log10().div(3).floor().clampMin(0)
149149
prefix = ""
150-
prefix += symbols[0][e.div(10000).floor().mod(10)]
151-
prefix += symbols[1][e.div(100000).floor().mod(10)]
152-
prefix += symbols[2][e.div(1000000).floor().mod(10)]
153-
prefix += e.div(1000).floor().mod(10).neq(0) ? "Mi" : ""
154-
prefix += symbols[0][e.mod(10)]
155-
prefix += symbols[1][e.div(10).floor().mod(10)]
156-
prefix += symbols[2][e.div(100).floor().mod(10)]
157-
if (first[e] != undefined) prefix = first[e]
150+
if (first[e] != undefined) { prefix = first[e] } else {
151+
decimal = decimal.div(1000)
152+
e = decimal.log10().div(3).floor().clampMin(0)
153+
prefix += symbols[0][e.div(10000).floor().mod(10)]
154+
prefix += symbols[1][e.div(100000).floor().mod(10)]
155+
prefix += symbols[2][e.div(1000000).floor().mod(10)]
156+
prefix += e.div(1000).floor().mod(10).neq(0) ? "Mi" : ""
157+
prefix += symbols[0][e.mod(10)]
158+
prefix += symbols[1][e.div(10).floor().mod(10)]
159+
prefix += symbols[2][e.div(100).floor().mod(10)]
160+
}
158161
return (e.lt(3000) ? defaultFormat(decimal.div(new Decimal(10).pow(e.times(3)))) : "1") + prefix
159162
}
160163

0 commit comments

Comments
 (0)