Skip to content

Commit

Permalink
0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
WiktorProj committed Sep 7, 2024
1 parent d3dba14 commit 93b6249
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 9 deletions.
51 changes: 46 additions & 5 deletions MeTMT/js/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,32 @@ addLayer("+", {
["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",
"<br><br>Please like this game the colors took so long ;-;"
]
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",
"<br><br>Please like this game the colors took so long ;-;<br><br>"
],
['infobox', 'help']
],
},
},
infoboxes: {
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" },
}
},
gainMult() { // Calculate the multiplier for main currency from bonuses
mult = new Decimal(1)
if (hasUpgrade('p', 21)) mult = mult.div(2)
Expand Down Expand Up @@ -630,7 +651,7 @@ addLayer("u", {
},
buyables: {
11: {
cost(x) { return new Decimal(1).mul(x).pow(15) },
cost(x) { return new Decimal(2).mul(x.pow(2)).pow(15).pow(3) },
title: "Ultra Buyable!",
display() { return "Amount: " + format(getBuyableAmount(this.layer, this.id).floor()) + "\nCost: " + format(this.cost().floor()) + " ulra points\nEffect: x" + format(this.effect()) + " point gain"},
canAfford() { return player[this.layer].points.gte(this.cost()) },
Expand All @@ -639,14 +660,15 @@ addLayer("u", {
setBuyableAmount(this.layer, this.id, getBuyableAmount(this.layer, this.id).add(1))
},
effect() {
return new Decimal(1).mul(this.cost().sub(1)).times(50).pow(0.9).add(1)
return new Decimal(1).mul(this.cost().sub(1)).times(50 + (hasUpgrade('i', 16) ? 50 : 0)).pow(0.9).add(1)
},
unlocked() {return player['+'].points.gte(12)}
},
},
gainMult() { // Calculate the multiplier for main currency from bonuses
mult = new Decimal(1)
if (hasUpgrade('i', 13)) mult = mult.times(2)
if (hasUpgrade('i', 15)) mult = mult.times(2)
return mult
},
gainExp() { // Calculate the exponent on main currency from bonuses
Expand Down Expand Up @@ -706,13 +728,32 @@ addLayer("i", {
},
14: {
title: "The final upgrade for v0.3",
description: "Nothing, just nothing",
description: "Does something?",
cost: new Decimal(10),
unlocked() {return player['+'].points.gte(19)}
},
15: {
title: "Exchange",
description: "/2 infinity gain, x2 ultra gain",
cost: new Decimal(25),
unlocked() {return player['+'].points.gte(20)}
},
16: {
title: "UltraBuff",
description: "Boost the ultra byable effect",
cost: new Decimal(150),
unlocked() {return player['+'].points.gte(20)}
},
17: {
title: "Nice",
description: "x69,420 point gain, oh, and win",
cost: new Decimal(1000),
unlocked() {return player['+'].points.gte(20)}
},
},
gainMult() { // Calculate the multiplier for main currency from bonuses
mult = new Decimal(1)
if (hasUpgrade('i', 15)) mult = mult.times(0.5)
return mult
},
gainExp() { // Calculate the exponent on main currency from bonuses
Expand Down
10 changes: 6 additions & 4 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",
name: "NoGap",
num: "0.4.1",
name: "NoGap T1",
}

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

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

// Determines when the game "ends"
function isEndgame() {
return hasUpgrade('i', 14)
return hasUpgrade('i', 17)
}


Expand Down

0 comments on commit 93b6249

Please sign in to comment.