@@ -62,11 +62,32 @@ addLayer("+", {
62
62
[ "display-text" ,
63
63
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" } } , ] ,
64
64
[ "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' ]
67
70
] ,
68
71
} ,
69
72
} ,
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
+ } ,
70
91
gainMult ( ) { // Calculate the multiplier for main currency from bonuses
71
92
mult = new Decimal ( 1 )
72
93
if ( hasUpgrade ( 'p' , 21 ) ) mult = mult . div ( 2 )
@@ -630,7 +651,7 @@ addLayer("u", {
630
651
} ,
631
652
buyables : {
632
653
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 ) } ,
634
655
title : "Ultra Buyable!" ,
635
656
display ( ) { return "Amount: " + format ( getBuyableAmount ( this . layer , this . id ) . floor ( ) ) + "\nCost: " + format ( this . cost ( ) . floor ( ) ) + " ulra points\nEffect: x" + format ( this . effect ( ) ) + " point gain" } ,
636
657
canAfford ( ) { return player [ this . layer ] . points . gte ( this . cost ( ) ) } ,
@@ -639,14 +660,15 @@ addLayer("u", {
639
660
setBuyableAmount ( this . layer , this . id , getBuyableAmount ( this . layer , this . id ) . add ( 1 ) )
640
661
} ,
641
662
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 )
643
664
} ,
644
665
unlocked ( ) { return player [ '+' ] . points . gte ( 12 ) }
645
666
} ,
646
667
} ,
647
668
gainMult ( ) { // Calculate the multiplier for main currency from bonuses
648
669
mult = new Decimal ( 1 )
649
670
if ( hasUpgrade ( 'i' , 13 ) ) mult = mult . times ( 2 )
671
+ if ( hasUpgrade ( 'i' , 15 ) ) mult = mult . times ( 2 )
650
672
return mult
651
673
} ,
652
674
gainExp ( ) { // Calculate the exponent on main currency from bonuses
@@ -706,13 +728,32 @@ addLayer("i", {
706
728
} ,
707
729
14 : {
708
730
title : "The final upgrade for v0.3" ,
709
- description : "Nothing, just nothing " ,
731
+ description : "Does something? " ,
710
732
cost : new Decimal ( 10 ) ,
711
733
unlocked ( ) { return player [ '+' ] . points . gte ( 19 ) }
712
734
} ,
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
+ } ,
713
753
} ,
714
754
gainMult ( ) { // Calculate the multiplier for main currency from bonuses
715
755
mult = new Decimal ( 1 )
756
+ if ( hasUpgrade ( 'i' , 15 ) ) mult = mult . times ( 0.5 )
716
757
return mult
717
758
} ,
718
759
gainExp ( ) { // Calculate the exponent on main currency from bonuses
0 commit comments