diff --git a/index.html b/index.html index 25a3980..1a41874 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,7 @@ The Prestige Tree + @@ -12,7 +13,7 @@
-
+

Version 1.1: The Life Update

@@ -322,7 +323,7 @@
-
+

i
@@ -331,37 +332,37 @@
You have

{{format(player.points)}}

Points




- +
- - + +


- - - - - + + + + +


- - - - + + + +


- + - +


@@ -381,92 +382,92 @@ You have

{{formatWhole(player[layer].points)}}

{{LAYER_RES[layer]}}, {{getLayerEffDesc(layer)}}

-
-
8 Boosters
Keep Prestige Upgrades on reset
15 Boosters
You can buy max Boosters
+ +
8 Boosters
Keep Prestige Upgrades on reset
15 Boosters
You can buy max Boosters
You have {{format(player.g.power)}} Generator Power, which multiplies Point gain by {{format(tmp.genPowEff)}}

- - -
8 Generators
Keep Prestige Upgrades on reset
10 Generators
Gain 100% of Prestige Point gain every second
15 Generators
You can buy max Generators
+ + +
8 Generators
Keep Prestige Upgrades on reset
10 Generators
Gain 100% of Prestige Point gain every second
15 Generators
You can buy max Generators
- -
2 enhance points
Keep Booster/Generator milestones on reset
10 enhance points
Keep Prestige Upgrades on reset


+ +
2 enhance points
Keep Booster/Generator milestones on reset
10 enhance points
Keep Prestige Upgrades on reset


You have {{format(player.t.energy)}} Time Energy, which multiplies Point gain & Prestige Point gain by {{format(tmp.timeEff)}}

- - - - - +
2 time capsules
Keep Booster/Generator milestones on reset
3 time capsules
Keep Prestige Upgrades on reset
4 time capsules
Keep Booster Upgrades on all row 3 resets
5 time capsules
Automatically purchase Boosters   
12 time capsules
Boosters reset nothing
+ + + +
2 time capsules
Keep Booster/Generator milestones on reset
3 time capsules
Keep Prestige Upgrades on reset
4 time capsules
Keep Booster Upgrades on all row 3 resets
5 time capsules
Automatically purchase Boosters   
12 time capsules
Boosters reset nothing


You have {{formatWhole(getSpace())}} Space remaining for Space Buildings.

- - - - - +
2 space energy
Keep Booster/Generator milestones on reset
3 space energy
Keep Prestige Upgrades on reset
4 space energy
Keep Generator Upgrades on all row 3 resets
5 space energy
Automatically purchase Generators   
12 space energy
Generators reset nothing
+ + + +
2 space energy
Keep Booster/Generator milestones on reset
3 space energy
Keep Prestige Upgrades on reset
4 space energy
Keep Generator Upgrades on all row 3 resets
5 space energy
Automatically purchase Generators   
12 space energy
Generators reset nothing


You have {{ format(player.g.power) }} Generator Power


-

+


- -
3 Super-Boosters
Keep Prestige Upgrades on reset
4 Super-Boosters
Keep Booster/Generator milestones on reset
+ +
3 Super-Boosters
Keep Prestige Upgrades on reset
4 Super-Boosters
Keep Booster/Generator milestones on reset
You have {{format(player.sg.power)}} Super-Generator Power, which multiplies the Generator base by {{format(tmp.sGenPowEff)}}

- - + +
1 Super-Generator
You can buy max Super-Generators, and Super-Generators reset nothing
2 Super-Generators
Automatically purchase Super-Generators   
1 Super-Generator
You can buy max Super-Generators, and Super-Generators reset nothing
2 Super-Generators
Automatically purchase Super-Generators   
- - - - - - - - +
1 Hindrance Spirit
Keep Prestige Upgrades on all previous resets, and gain 100x more Enhance Points
2 Hindrance Spirit
Keep all third row milestones on all fourth row resets, and start with your best-ever Space
4 Hindrance Spirit
Keep Time, Enhance, and Space Upgrades on all fourth row resets
5 Hindrance Spirit
Automatically purchase Extra Time Capsules   
10 Hindrance Spirit
Keep Prestige & Super-Booster Upgrades on all fourth row resets
15 Hindrance Spirit
Automatically purchase Super-Boosters   
25 Hindrance Spirit
Time resets reset nothing
2,500 Hindrance Spirit
Super-Boosters reset nothing
+ + + + + + +
1 Hindrance Spirit
Keep Prestige Upgrades on all previous resets, and gain 100x more Enhance Points
2 Hindrance Spirit
Keep all third row milestones on all fourth row resets, and start with your best-ever Space
4 Hindrance Spirit
Keep Time, Enhance, and Space Upgrades on all fourth row resets
5 Hindrance Spirit
Automatically purchase Extra Time Capsules   
10 Hindrance Spirit
Keep Prestige & Super-Booster Upgrades on all fourth row resets
15 Hindrance Spirit
Automatically purchase Super-Boosters   
25 Hindrance Spirit
Time resets reset nothing
2,500 Hindrance Spirit
Super-Boosters reset nothing
You have {{format(player.q.energy)}} Quirk Energy (generated by Quirk Layers), which multiplies Point & Generator Power gain by {{format(tmp.quirkEff)}}

- - - - - - - - +
1 Quirk
Keep Prestige Upgrades on all previous resets, and gain 100x more Enhance Points
2 Quirks
You can buy max Time Capsules & Space Energy
4 Quirks
Keep Space Buildings on all fourth row resets
5 Quirks
Automatically purchase Enhancers   
10 Quirks
Automatically purchase Time Capsules & Space Energy
 
15 Quirks
Gain 100% of Enhance Point gain every second
25 Quirks
Space resets reset nothing
2,500 Quirks
You can destroy individual Space Buildings
+ + + + + + +
1 Quirk
Keep Prestige Upgrades on all previous resets, and gain 100x more Enhance Points
2 Quirks
You can buy max Time Capsules & Space Energy
4 Quirks
Keep Space Buildings on all fourth row resets
5 Quirks
Automatically purchase Enhancers   
10 Quirks
Automatically purchase Time Capsules & Space Energy
 
15 Quirks
Gain 100% of Enhance Point gain every second
25 Quirks
Space resets reset nothing
2,500 Quirks
You can destroy individual Space Buildings


- +
1 Hyper-Booster
You can buy max Super-Boosters
1 Hyper-Booster
You can buy max Super-Boosters
You have {{format(player.ss.subspace)}} Subspace, which provides you with {{formatWhole(tmp.ssEff1)}} extra Space, makes all Space Buildings {{format(tmp.ssEff2)}}x cheaper, and makes all Space Buildings {{format(tmp.ssEff3.sub(1).times(100))}}% stronger

- +
1 Subspace Energy
Automatically purchase Space Buildings   
1 Subspace Energy
Automatically purchase Space Buildings   
@@ -482,12 +483,12 @@
You have {{formatWhole(player.m.hexes)}} Hexes, which are multiplying Hindrance Spirit & Quirk gain by {{format(tmp.hexEff)}}

- - - - - - + + + + + +
1 Magic
Keep row 4 milestones on all resets
2 Magic
Keep Hindrance completions on all resets
3 Magic
Gain 100% of Hindrance Spirit & Quirk gain every second
4 Magic
Automatically purchase Hyper-Boosters & Subspace      
1,000 Magic
Automatically cast Spells   
2.5e9 Magic
Gain 100% of Hex gain every second, and Spells last 10x longer
1 Magic
Keep row 4 milestones on all resets
2 Magic
Keep Hindrance completions on all resets
3 Magic
Gain 100% of Hindrance Spirit & Quirk gain every second
4 Magic
Automatically purchase Hyper-Boosters & Subspace      
1,000 Magic
Automatically cast Spells   
2.5e9 Magic
Gain 100% of Hex gain every second, and Spells last 10x longer
@@ -496,21 +497,21 @@ You have {{format(player.ba.negativity)}} Negativity
Your Positivity & Negativity are multiplying Balance Power gain by {{format(tmp.balEff2)}}

- - - - - + + + + +
1 Balance Energy
Keep row 4 milestones on all resets
2 Balance Energy
Keep Quirk Upgrades on all resets
3 Balance Energy
Automatically purchase Quirk Layers   
5 Balance Energy
Keep Hyper-Booster & Subspace Upgrades on all resets
8 Balance Energy
You can buy max Hyper-Boosters & Subspace Energy, and Hyper-Boosters/Subspace Energy reset nothing
1 Balance Energy
Keep row 4 milestones on all resets
2 Balance Energy
Keep Quirk Upgrades on all resets
3 Balance Energy
Automatically purchase Quirk Layers   
5 Balance Energy
Keep Hyper-Booster & Subspace Upgrades on all resets
8 Balance Energy
You can buy max Hyper-Boosters & Subspace Energy, and Hyper-Boosters/Subspace Energy reset nothing



- - + +


- +
diff --git a/js/game.js b/js/game.js index e18b677..ffe9989 100644 --- a/js/game.js +++ b/js/game.js @@ -12,6 +12,7 @@ function getStartPlayer() { tab: "tree", time: Date.now(), autosave: true, + notify: {}, msDisplay: "always", offlineProd: true, versionType: "release", @@ -1550,6 +1551,7 @@ function checkForVars() { if (player.m.casted === undefined) player.m.casted = start.m.casted if (player.ba === undefined) player.ba = start.ba if (player.offlineProd === undefined) player.offlineProd = true + if (player.notify === undefined) player.notify = {} } function convertToDecimal() { @@ -1649,10 +1651,25 @@ function formatTime(s) { else return formatWhole(Math.floor(s/3600))+"h "+formatWhole(Math.floor(s/60)%60)+"m "+format(s%60)+"s" } +var onTreeTab = true function showTab(name) { if (!TAB_REQS[name]()) return + var toTreeTab = name == "tree" player.tab = name - if (name=="tree") needCanvasUpdate = true; + + if (toTreeTab != onTreeTab) { + document.getElementById("treeTab").className = "col " + (toTreeTab ? "full" : "left") + document.getElementById("vl").className = "vl " + (toTreeTab ? "none" : "") + onTreeTab = toTreeTab + resizeCanvas() + } + delete player.notify[name] +} + +function notifyLayer(name) { + if (!TAB_REQS[name]()) return + if (player.tab == name) return + player.notify[name] = 1 } function canBuyMax(layer) { diff --git a/style.css b/style.css index 0c2ecf9..3516294 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,7 @@ * { transition-duration: 0.5s; text-align: center; - font-family: "Lucida Console", "Courier New", monospace; + font-family: "Inconsolata", monospace; table-align: center; margin: auto; } @@ -46,8 +46,9 @@ html, body { vertical-align: 0 } -h1, h2 { +h1, h2, h3, b { display: inline; + font-family: "Lucida Console", "Courier New", monospace } .treeNode { @@ -58,6 +59,9 @@ h1, h2 { border-radius: 50%; box-shadow: var(--hqProperty2a), var(--hqProperty2b); font-size: 40px; + font-family: "Lucida Console", "Courier New", monospace; + color: rgba(0, 0, 0, 0.5); + font-weight: bold; text-shadow: var(--hqProperty3); } @@ -75,10 +79,17 @@ h1, h2 { box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.5) } +.treeNode.notify { + transform: scale(1.1, 1.1); + border-color: rgba(255, 0, 0, 0.125) rgba(255, 0, 0, 0.25) rgba(255, 0, 0, 0.25) rgba(255, 0, 0, 0.125); + box-shadow: var(--hqProperty2a), 0px 0px 20px #ff0000 !important; + z-index: 3 +} + .treeNode.can:hover { transform: scale(1.15, 1.15); box-shadow: var(--hqProperty2a), 0px 0px 20px rgba(255, 255, 255, 0.5); - z-index: 3 + z-index: 4 } .bought { @@ -114,7 +125,7 @@ h1, h2 { height: 120px; width: 120px; border-radius: 25%; - border: 4px solid; + border: 2px solid; border-color: rgba(255, 255, 255, 0.125) rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.25) rgba(255, 255, 255, 0.125); font-size: 10px; } @@ -123,7 +134,7 @@ h1, h2 { height: 200px; width: 200px; border-radius: 25%; - border: 4px solid; + border: 2px solid; border-color: rgba(255, 255, 255, 0.125) rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.25) rgba(255, 255, 255, 0.125); } @@ -131,7 +142,7 @@ h1, h2 { height: 50px; width: 120px; border-radius: 50%; - border: 4px solid; + border: 2px solid; border-color: rgba(255, 255, 255, 0.125) rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.25) rgba(255, 255, 255, 0.125); font-size: 10px; } @@ -140,13 +151,13 @@ h1, h2 { height: 40px; width: 40px; border-radius: 25%; - border: 4px solid; + border: 2px solid; border-color: rgba(255, 255, 255, 0.125) rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.25) rgba(255, 255, 255, 0.125); } .p { background-color: #439ea3; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .p_txt { @@ -156,7 +167,7 @@ h1, h2 { .b { background-color: #415a9e; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .b_txt { @@ -166,7 +177,7 @@ h1, h2 { .g { background-color: #409c6e; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .g_txt { @@ -176,7 +187,7 @@ h1, h2 { .e { background-color: #9643a3; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .e_txt { @@ -186,7 +197,7 @@ h1, h2 { .t { background-color: #3f993d; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .t_txt { @@ -196,7 +207,7 @@ h1, h2 { .s { background-color: white; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .s_txt { @@ -206,7 +217,7 @@ h1, h2 { .sb { background-color: #494b99; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .sb_txt { @@ -216,7 +227,7 @@ h1, h2 { .h { background-color: #a14040; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .h_txt { @@ -226,7 +237,7 @@ h1, h2 { .q { background-color: #ff2bf2; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .q_txt { @@ -236,7 +247,7 @@ h1, h2 { .hb { background-color: #513d94; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .hb_txt { @@ -246,7 +257,7 @@ h1, h2 { .ss { background-color: #eff7ff; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .ss_txt { @@ -256,7 +267,7 @@ h1, h2 { .m { background-color: #eb34c0; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .m_txt { @@ -266,7 +277,7 @@ h1, h2 { .ba { background-color: #ebc88f; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .ba_txt { @@ -276,7 +287,7 @@ h1, h2 { .sg { background-color: #3d997a; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .sg_txt { @@ -286,27 +297,27 @@ h1, h2 { .sp { background-color: #007fff; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .l { background-color: #7fbf7f; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .ps { background-color: #b38fbf; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .hs { background-color: #dfdfff; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } .i { background-color: #e5dab7; - color: rgba(0, 0, 0, 0.75); + color: rgba(0, 0, 0, 0.5); } #optionWheel { @@ -355,6 +366,7 @@ a { cursor: pointer; width: 100%; min-width: 100%; + font-family: "Lucida Console", "Courier New", monospace; -webkit-text-stroke-width: 1px; -webkit-text-stroke-color: #02f2f2; text-decoration: none; @@ -430,6 +442,19 @@ a { position: absolute; overflow-y: auto; overflow-x: hidden; + transition-duration: 0s +} + +.col.full { + min-width: 100%; + max-width: 100%; + width: 100%; + height: 100%; + min-height: 100%; + column-span: 1; + position: absolute; + overflow-y: auto; + overflow-x: hidden } .col.right { @@ -450,6 +475,11 @@ a { left: 50%; margin-left: -3px; top: 0; + transition-duration: 0s +} + +.vl.none { + left: 100% } ul {