Skip to content

Commit

Permalink
0.4_1/2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
WiktorProj committed Sep 10, 2024
1 parent 82d50b7 commit 38c2785
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 12 deletions.
23 changes: 21 additions & 2 deletions MeTMT/js/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,29 @@ addLayer("+", {
["display-text",
"<br><br>Please like this game the colors took so long ;-;<br><br>"
],
['infobox', 'help']
['infobox', 'help'],
['infobox', 'cap']
],
},
},
infoboxes: {
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 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"
},
},
cap: {
title: "Addition cap",
body() {
return "<span style=\"color: rgb(95, 111, 127); text-shadow: rgb(95, 111, 127) 0px 0px 10px;\">Addition</span> cap is currently " + format(additionCap)
}
}
},
automate() {
if (player['+'].points.gt(additionCap)) {
player['+'].points = new Decimal(additionCap)
overginded = true
}
},
gainMult() { // Calculate the multiplier for main currency from bonuses
Expand Down Expand Up @@ -202,6 +216,11 @@ addLayer("a", {
done() {return hasUpgrade('i', 17)}
},
31: {
name: "You tried ¯\\_(ツ)_/¯",
tooltip: "Try to overgrind for additions",
done() {return overginded}
},
32: {
name: "Infinity of infinities",
tooltip: "Get 2^1024 infinities",
done() {return player['i'].points.gte(new Decimal(2).pow(1024))}
Expand Down
8 changes: 6 additions & 2 deletions MeTMT/js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ let modInfo = {

// Set your version in num and name
let VERSION = {
num: "0.4½",
name: "The option update",
num: "0.4½.1",
name: "The option update T1",
}

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

// 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)
var doNotCallTheseFunctionsEveryTick = ["blowUpEverything"]
Expand All @@ -34,6 +36,8 @@ function canGenPoints(){
return true
}

overginded = false

// Calculate points/sec!
function getPointGen() {
if(!canGenPoints()) return new Decimal(0)
Expand Down
19 changes: 11 additions & 8 deletions MeTMT/js/utils/NumberFormating.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,17 @@ function standardFormat(decimal) {
if (decimal.eq(0)) return "0"
e = decimal.log10().div(3).floor().clampMin(0)
prefix = ""
prefix += symbols[0][e.div(10000).floor().mod(10)]
prefix += symbols[1][e.div(100000).floor().mod(10)]
prefix += symbols[2][e.div(1000000).floor().mod(10)]
prefix += e.div(1000).floor().mod(10).neq(0) ? "Mi" : ""
prefix += symbols[0][e.mod(10)]
prefix += symbols[1][e.div(10).floor().mod(10)]
prefix += symbols[2][e.div(100).floor().mod(10)]
if (first[e] != undefined) prefix = first[e]
if (first[e] != undefined) { prefix = first[e] } else {
decimal = decimal.div(1000)
e = decimal.log10().div(3).floor().clampMin(0)
prefix += symbols[0][e.div(10000).floor().mod(10)]
prefix += symbols[1][e.div(100000).floor().mod(10)]
prefix += symbols[2][e.div(1000000).floor().mod(10)]
prefix += e.div(1000).floor().mod(10).neq(0) ? "Mi" : ""
prefix += symbols[0][e.mod(10)]
prefix += symbols[1][e.div(10).floor().mod(10)]
prefix += symbols[2][e.div(100).floor().mod(10)]
}
return (e.lt(3000) ? defaultFormat(decimal.div(new Decimal(10).pow(e.times(3)))) : "1") + prefix
}

Expand Down

0 comments on commit 38c2785

Please sign in to comment.