From 54339f43643835ca8e9997b600dd06f9acc6a066 Mon Sep 17 00:00:00 2001
From: Jacorb90 <39597610+Jacorb90@users.noreply.github.com>
Date: Wed, 9 Sep 2020 20:40:07 -0400
Subject: [PATCH 1/2] v1.0 Beta 4
---
index.html | 4 ++++
js/game.js | 23 ++++++++++++++++-------
2 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/index.html b/index.html
index 166a639..aa48a2d 100644
--- a/index.html
+++ b/index.html
@@ -15,6 +15,10 @@
+
v1.0 Beta 4
+
+ - Balanced up to 1e40,000,000 Points & 500,000 Super-Prestige Points
+
v1.0 Beta 3
- Added a hotkey for the fourth Spell
diff --git a/js/game.js b/js/game.js
index c0a18af..673d391 100644
--- a/js/game.js
+++ b/js/game.js
@@ -1422,7 +1422,11 @@ const LAYER_UPGS = {
desc: "Super-Prestige Points boost Super-Prestige Point gain.",
cost: new Decimal(40),
unl: function() { return player.sp.upgrades.includes(14)||player.sp.upgrades.includes(23) },
- currently: function() { return player.sp.points.plus(1).sqrt() },
+ currently: function() {
+ let sp = player.sp.points
+ if (sp.gte(2e4)) sp = sp.cbrt().times(Math.pow(2e4, 2/3));
+ return sp.plus(1).sqrt()
+ },
effDisp: function(x) { return format(x)+"x" },
},
31: {
@@ -1438,14 +1442,16 @@ const LAYER_UPGS = {
effDisp: function(x) { return format(x.pow(player.sp.upgrades.includes(11)?100:1))+"x later" },
},
33: {
- desc: "???",
- cost: new Decimal(1/0),
- unl: function() { return false },
+ desc: "Points boost Super-Prestige Point gain.",
+ cost: new Decimal(1e4),
+ unl: function() { return player.sp.upgrades.includes(24)&&player.sp.upgrades.includes(32) },
+ currently: function() { return player.points.plus(1).log10().pow(0.1) },
+ effDisp: function(x) { return format(x)+"x" },
},
34: {
- desc: "???",
- cost: new Decimal(1/0),
- unl: function() { return false },
+ desc: "Boosters & Generators are 25% stronger.",
+ cost: new Decimal(1.5e5),
+ unl: function() { return player.sp.upgrades.includes(33) },
},
},
}
@@ -1901,6 +1907,7 @@ function getLayerGainMult(layer) {
break;
case "sp":
if (player.sp.upgrades.includes(24)) mult = mult.times(LAYER_UPGS.sp[24].currently())
+ if (player.sp.upgrades.includes(33)) mult = mult.times(LAYER_UPGS.sp[33].currently())
break;
}
return mult
@@ -2264,6 +2271,7 @@ function getFreeBoosters() {
function getBoosterPower() {
let power = new Decimal(1)
if (spellActive(1)) power = power.times(tmp.spellEffs[1])
+ if (player.sp.upgrades.includes(34)) power = power.times(1.25)
return power
}
@@ -2284,6 +2292,7 @@ function addToGenBase() {
function getGenPow() {
let pow = new Decimal(1)
if (player.g.upgrades.includes(34)) pow = pow.times(LAYER_UPGS.g[34].currently())
+ if (player.sp.upgrades.includes(34)) pow = pow.times(1.25)
return pow
}
From 3e50c314ca231c05c411e98ea2e9949995c0b87c Mon Sep 17 00:00:00 2001
From: Jacorb90 <39597610+Jacorb90@users.noreply.github.com>
Date: Wed, 9 Sep 2020 21:28:47 -0400
Subject: [PATCH 2/2] v1.0 Full Release
---
index.html | 18 +++++++++++++++---
js/game.js | 11 +++++++++++
style.css | 22 ++++++++++++++++++++++
3 files changed, 48 insertions(+), 3 deletions(-)
diff --git a/index.html b/index.html
index aa48a2d..4c06ba2 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
The Prestige Tree
-
+
@@ -12,9 +12,21 @@
-
+
+
+
+
Thank you for playing The Prestige Tree v1.0!
+ It took you {{formatTime(player.timePlayed)}}
+ If you would like to speedrun this, play again from the beginning and record the whole thing as fast as possible, then submit in my discord
+
+
+
v1.0 Full Release
+
+ - Converted Vue to production mode
+ - Added an end screen at 1e40,000,000 Points
+
v1.0 Beta 4
- Balanced up to 1e40,000,000 Points & 500,000 Super-Prestige Points
@@ -331,7 +343,7 @@
-
+
i
diff --git a/js/game.js b/js/game.js
index 673d391..8b74897 100644
--- a/js/game.js
+++ b/js/game.js
@@ -6,6 +6,7 @@ var offTime = {
};
var needCanvasUpdate = true;
var NaNalert = false;
+var gameEnded = false;
function getStartPlayer() {
return {
@@ -3127,9 +3128,16 @@ function addToSGBase() {
return toAdd
}
+const ENDGAME = new Decimal("1e40000000");
+
function gameLoop(diff) {
diff = new Decimal(diff)
if (isNaN(diff.toNumber())) diff = new Decimal(0);
+ if (player.points.gte(ENDGAME)) gameEnded = true;
+ if (gameEnded) {
+ diff = new Decimal(0);
+ player.tab = "gameEnded";
+ }
player.h.time += diff.toNumber()
if (tmp.hcActive ? tmp.hcActive[42] : true) {
if (player.h.time>=10) diff = new Decimal(0)
@@ -3213,11 +3221,13 @@ function hardReset() {
var saveInterval = setInterval(function() {
if (player===undefined) return;
+ if (gameEnded) return;
if (player.autosave) save();
}, 5000)
var interval = setInterval(function() {
if (player===undefined||tmp===undefined) return;
+ if (gameEnded) return;
let diff = (Date.now()-player.time)/1000
if (!player.offlineProd) offTime.remain = 0
if (offTime.remain>0) {
@@ -3233,6 +3243,7 @@ var interval = setInterval(function() {
document.onkeydown = function(e) {
if (player===undefined) return;
+ if (gameEnded) return;
let shiftDown = e.shiftKey
let ctrlDown = e.ctrlKey
let key = e.key
diff --git a/style.css b/style.css
index 88f3217..a73ab83 100644
--- a/style.css
+++ b/style.css
@@ -324,6 +324,22 @@ h1, h2 {
-3px 0px 12px #02f2f2;
}
+.link {
+ color: white;
+ cursor: pointer;
+ font-size: 16px;
+ font-weight: bold;
+ -webkit-text-stroke-width: 1px;
+ -webkit-text-stroke-color: #02f2f2;
+ text-decoration: none;
+}
+
+.link:hover {
+ transform: scale(1.2, 1.2);
+ text-shadow: 5px 0px 10px #02f2f2,
+ -3px 0px 12px #02f2f2;
+}
+
.opt {
height: 100px;
width: 100px;
@@ -435,6 +451,12 @@ ul {
color: #03858f;
}
+.fullWidth {
+ position: absolute;
+ width: 100%;
+ min-width: 100%;
+}
+
[tooltip] {
position: relative;
z-index: 2;