Skip to content

Commit 93b6249

Browse files
committed
0.4.1
1 parent d3dba14 commit 93b6249

File tree

2 files changed

+52
-9
lines changed

2 files changed

+52
-9
lines changed

MeTMT/js/layers.js

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,32 @@ addLayer("+", {
6262
["display-text",
6363
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"} },],
6464
["display-text",
65-
"<br><br>Please like this game the colors took so long ;-;"
66-
]
65+
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"} },],
66+
["display-text",
67+
"<br><br>Please like this game the colors took so long ;-;<br><br>"
68+
],
69+
['infobox', 'help']
6770
],
6871
},
6972
},
73+
infoboxes: {
74+
help: {
75+
title: "Help for colors and sizes",
76+
body() {
77+
function makeid(length) {
78+
let result = '';
79+
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????';
80+
const charactersLength = characters.length;
81+
let counter = 0;
82+
while (counter < length) {
83+
result += characters.charAt(Math.floor(Math.random() * charactersLength));
84+
counter += 1;
85+
}
86+
return result;
87+
}
88+
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" },
89+
}
90+
},
7091
gainMult() { // Calculate the multiplier for main currency from bonuses
7192
mult = new Decimal(1)
7293
if (hasUpgrade('p', 21)) mult = mult.div(2)
@@ -630,7 +651,7 @@ addLayer("u", {
630651
},
631652
buyables: {
632653
11: {
633-
cost(x) { return new Decimal(1).mul(x).pow(15) },
654+
cost(x) { return new Decimal(2).mul(x.pow(2)).pow(15).pow(3) },
634655
title: "Ultra Buyable!",
635656
display() { return "Amount: " + format(getBuyableAmount(this.layer, this.id).floor()) + "\nCost: " + format(this.cost().floor()) + " ulra points\nEffect: x" + format(this.effect()) + " point gain"},
636657
canAfford() { return player[this.layer].points.gte(this.cost()) },
@@ -639,14 +660,15 @@ addLayer("u", {
639660
setBuyableAmount(this.layer, this.id, getBuyableAmount(this.layer, this.id).add(1))
640661
},
641662
effect() {
642-
return new Decimal(1).mul(this.cost().sub(1)).times(50).pow(0.9).add(1)
663+
return new Decimal(1).mul(this.cost().sub(1)).times(50 + (hasUpgrade('i', 16) ? 50 : 0)).pow(0.9).add(1)
643664
},
644665
unlocked() {return player['+'].points.gte(12)}
645666
},
646667
},
647668
gainMult() { // Calculate the multiplier for main currency from bonuses
648669
mult = new Decimal(1)
649670
if (hasUpgrade('i', 13)) mult = mult.times(2)
671+
if (hasUpgrade('i', 15)) mult = mult.times(2)
650672
return mult
651673
},
652674
gainExp() { // Calculate the exponent on main currency from bonuses
@@ -706,13 +728,32 @@ addLayer("i", {
706728
},
707729
14: {
708730
title: "The final upgrade for v0.3",
709-
description: "Nothing, just nothing",
731+
description: "Does something?",
710732
cost: new Decimal(10),
711733
unlocked() {return player['+'].points.gte(19)}
712734
},
735+
15: {
736+
title: "Exchange",
737+
description: "/2 infinity gain, x2 ultra gain",
738+
cost: new Decimal(25),
739+
unlocked() {return player['+'].points.gte(20)}
740+
},
741+
16: {
742+
title: "UltraBuff",
743+
description: "Boost the ultra byable effect",
744+
cost: new Decimal(150),
745+
unlocked() {return player['+'].points.gte(20)}
746+
},
747+
17: {
748+
title: "Nice",
749+
description: "x69,420 point gain, oh, and win",
750+
cost: new Decimal(1000),
751+
unlocked() {return player['+'].points.gte(20)}
752+
},
713753
},
714754
gainMult() { // Calculate the multiplier for main currency from bonuses
715755
mult = new Decimal(1)
756+
if (hasUpgrade('i', 15)) mult = mult.times(0.5)
716757
return mult
717758
},
718759
gainExp() { // Calculate the exponent on main currency from bonuses

MeTMT/js/mod.js

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

1414
// Set your version in num and name
1515
let VERSION = {
16-
num: "0.4",
17-
name: "NoGap",
16+
num: "0.4.1",
17+
name: "NoGap T1",
1818
}
1919

2020
let changelog = `galaxy has a changelog you don't need this one!`
@@ -61,6 +61,8 @@ function getPointGen() {
6161
if (player['+'].points.gte(13)) gain = gain.times(1.5)
6262
if (player['+'].points.gte(16)) gain = gain.times(player['+'].points.pow(1.1))
6363
if (hasUpgrade('i', 12)) gain = gain.times(2)
64+
if (hasUpgrade('i', 14)) gain = gain.times(5)
65+
if (hasUpgrade('i', 17)) gain = gain.times(69420)
6466
return gain
6567
}
6668

@@ -71,7 +73,7 @@ function addedPlayerData() { return {
7173
// Display extra things at the top of the page
7274
var displayThings = [
7375
function() {return 'You have ' + format(player['+'].points, 0) + ' additions'},
74-
"Endgame: infinity upgrade 14",
76+
"Endgame: infinity upgrade 17",
7577
function() {
7678
if (player.points.lte(100)) {
7779
return "If 1 point is a centimeter, you'd have " + format(player.points) + "cm"
@@ -118,7 +120,7 @@ var displayThings = [
118120

119121
// Determines when the game "ends"
120122
function isEndgame() {
121-
return hasUpgrade('i', 14)
123+
return hasUpgrade('i', 17)
122124
}
123125

124126

0 commit comments

Comments
 (0)