-
Notifications
You must be signed in to change notification settings - Fork 14
/
researchtree.js
2734 lines (2734 loc) · 141 KB
/
researchtree.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"use strict";
/*
normal-type research is refunded on Research respec
permanent-type research is not refunded on Research respec
study-type research allows the player to enter a study and is refunded on Research respec, unless the player is entering a study
*/
/*
description the effect of the research, accounting for boosts
adjacent_req adjacent research. at least one research in this array must be purchased in order to purchase the research. row 1 research is always purchasable
condition a condition that must be fulfilled to purchase the research
visibility a condition that must be fulfilled for the research to appear (besides having purchased a research from the previous row at least once)
type whether the research is normal, permanent or a study
basecost the base cost
icon the text inside the research box
group the group of the research
*/
const researchList = {
antimatter:{},
finality: { // 0 = adjacent requirements, 1-12 = research
EM:["r37_1","r39_1","r40_1","r41_1","r42_1","r43_1","r44_1","r45_1","r46_2","r47_3","r47_4","r47_5","r47_6"],
DM:[["r34_3","r34_4"],"r36_3","r37_3","r38_3","r39_3","r40_3","r40_4","r41_4","r42_4","r42_3","r43_3","r44_3","r44_4"],
AM:["r27_8","r30_6","r31_6","r32_6","r33_6","r34_6","r35_6","r36_6","r37_6","r38_6","r39_6","r40_6","r41_6"],
K:["r27_8","r30_10","r31_10","r32_10","r33_10","r34_10","r35_10","r36_10","r37_10","r38_10","r39_10","r40_10","r41_10"],
HR:[["r34_12","r34_13"],"r36_13","r37_13","r38_13","r39_13","r40_13","r40_12","r41_12","r42_12","r42_13","r43_13","r44_13","r44_12"],
S:["r37_15","r39_15","r40_15","r41_15","r42_15","r43_15","r44_15","r45_15","r46_14","r47_13","r47_12","r47_11","r47_10"]
}
}
const researchGroupList = {
energy:{label:"Energy",description:"Each Energy research owned doubles the cost of all other Energy research.",color:{light:"var(--energy)",dark:"0,68,68"},icon:"E"},
stardust:{label:"Stardust",get description(){return "Each Stardust research owned doubles the cost of all other Stardust research."+((g.studyCompletions[4]===4)?"":(" If your number of Stardust research is greater than or equal to your Study IV completions ("+g.studyCompletions[4]+") their cost is increased even further."))},color:{light:"#ff9900",dark:"51,34,0"},icon:"S"},
light:{label:"Chromatic",get description(){return "Each Chromatic research owned multiplies the cost of all other Chromatic research in the same row by "+(g.achievement[713]?achievement(713).effectFormat(achievement(713).effect()):"4")+"."},color:{light:"#ffff00",dark:"51,51,0"},icon:"C"},
lightaugment:{label:"Photonic",description:"Each Photonic research multiplies the cost of all other Photonic research by the number already owned, and increases the lumen requirements to buy them.",color:{light:"#cccc00",dark:"34,34,0"},icon:"C<sup>2</sup>"},
study5a:{label:"Theoretical",color:{light:"#00aaaa",dark:"0,40,40"},icon:"T"},
study5b:{label:"Practical",get description(){return "Having more "+researchGroupList.study5b.label+" research ("+ownedResearchInGroup("study5b").length+") than "+researchGroupList.study5a.label+" research ("+ownedResearchInGroup("study5a").length+") massively increases their costs"},color:{light:"#009999",dark:"0,34,34"},icon:"P"},
time:{label:"Time",get description(){return "You can buy a maximum of "+g.studyCompletions[6]+" Time research (equal to Study VI completions)"},color:{light:"var(--time)",dark:"0,51,0"},icon:"t"},
spatialsynergism:{label:"Spatial Synergism",get description(){return "You can buy a maximum of "+achievement.perAchievementReward[8].currentVal+" research from this group"},color:{light:"var(--wormhole_text)",dark:"0,0,51"},icon:"SS"},
study7:{label:"Crystal",color:{light:"#009900",dark:"0,34,0"},icon:"S"},
mastery:{label:"Mastery",get description(){return "Having more Mastery research than your Study VIII completions ("+g.studyCompletions[8]+") will weaken all Masteries by 33% per excess research"},color:{light:"var(--mastery)",dark:"51,0,34"},icon:"M"},
prismal:{label:"Prismal",get description(){return "You can buy a maximum of "+prismaticUpgrades.prismLab.eff()+" Prismal research"},color:{light:"#00ff99",dark:"0,51,34"},icon:"P"},
luck:{label:"Luck",get description(){return "Each Luck research makes all other Luck research "+(g.achievement[819]?c.d7.mul(achievement(819).effect()).noLeadFormat(3):"7")+"% less effective"},color:{light:"var(--luck)",dark:"17,51,34"},icon:"L"},
antimatter:{label:"Antimatter",get description(){return "Each Antimatter research makes all other Antimatter research "+(g.achievement[819]?c.d9.mul(achievement(819).effect()).noLeadFormat(3):"9")+"% less effective"},color:{light:"var(--antimatter)",dark:"34,0,0"},icon:"A"},
...(()=>{
let out = {}
for (let i=1;i<13;i++) out["finality"+i] = {label:"Finality-"+roman(i),description:"Each Finality-"+roman(i)+" research multiplies the cost of all other Finality-"+roman(i)+" research by "+(0.05*i**2+0.15*i+1).toFixed(1),color:{light:"rgb("+Math.round(51*(34-i)/11)+",0,"+Math.round(85*(34-i)/11)+")",dark:Math.round(51*(34-i)/55)+",0,"+Math.round(85*(34-i)/55)},icon:"F<sub>"+i+"</sub>"}
return out
})(),
binding:{label:"Mailbreaker",description:"Each Mailbreaker research owned doubles the cost of all other Mailbreaker research.",color:{light:"var(--binding)",dark:"47,36,25"},icon:"B"}
}
const research = (function(){
function studyReq(i,num) {return {check:function(){return g.studyCompletions[i]>=num},text:function(){return g.studyCompletions[i]+" / "+num+" Study "+((i===10)?"of Studies":roman(i))+" completions"}}}
function totalStudyReq(num) {return {check:function(){return g.studyCompletions.sum()>=num},text:function(){return g.studyCompletions.sum()+" / "+num+" total Study completions"}}}
function unconnectedResearchReq(id) {return {check:function(){return g.research[id]},text:function(){return "Research "+researchOut(id)+" owned"}}}
function lumenReq(index,num) {return {check:function(){return g.lumens[index].gte(num)},text:function(){return g.lumens[index].format()+" / "+num.format()+" "+lightNames[index]+" lumens"}}}
function lightAugmentReq(i) {
return {
req:function(){
let x = ownedResearchInGroup("lightaugment").length;
if (x>5) {x *= 3**(x-5)}
return Decimal.affordGeometricSeries(Decimal.fromComponents(1,1,21+x**3/3+x**2/2+x/6),lightData[i].baseReq,lightData[i].baseScale,0).max(c.d1)
},
check:function(){return g.lumens[i].gte(this.req())},
text:function(){return g.lumens[i].format()+" / "+this.req().format()+" "+lightNames[i]+" lumens"}
}
}
function studyVResearch(pos,comp,resInt,resOut,amount) {
return {
description:function(){return "All research is "+percentOrDiv(researchEffect(researchRow(pos),researchCol(pos)))+" cheaper"},
adjacent_req:[],
condition:[studyReq(5,comp),{text:function(){return g[resInt].format()+" / "+amount.format()+" "+resOut},check:function(){return g[resInt].gte(amount)}}],
visibility:function(){return g.studyCompletions[5]>=comp},
type:"normal",
basecost:c.d0,
icon:icon[resInt]+icon.arr+classes.research("R$"),
effect:function(power){return power.lt(c.d1)?c.d1.sub(power.div(c.d10)):c.d0_9.pow(power)},
group:"study5a"
}
}
function numOrFormula(id) {return showFormulas?formulaFormat(research[id].formulaDesc()):research[id].numDesc()}
function timeResearchDesc(row,col,res){return function(){let eff = researchEffect(row,col);return "+"+(eff.gte(c.d0_01)?(eff.mul(c.e2).noLeadFormat(2)+"% "+res+" per second"):("1% "+res+" per "+eff.mul(c.e2).max(c.minvalue).recip().noLeadFormat(2)+" seconds"))+" in the current Wormhole"+(g.research.r17_8?(", and this multiplier is then raised to the power of "+researchEffect(17,8).noLeadFormat(4)):"")+" (currently: "+(g.research.r17_8?arrowJoin(percentOrMult(eff.mul(g.truetimeThisWormholeReset).add(c.d1),2,true),percentOrMult(eff.mul(g.truetimeThisWormholeReset).add(c.d1).pow(researchEffect(17,8)),2,true)):percentOrMult(eff.mul(g.truetimeThisWormholeReset).add(c.d1),2,true))+")"}}
function prismalResearch(num) {
let row = 22+Math.floor(num/3)
let col = [7,8,9,7,8,9,7,9,8][num]
let id = "r"+row+"_"+col
let costi = (num===8)?3:Math.floor(num/3)
return {
numDesc:function(){return researchEffect(row,col).format(3)},
formulaDesc:function(){return researchPower(row,col).pow10().noLeadFormat(3)+"<sup>((L"+classes.sub(num+1)+formulaFormat.mult(lightData[num].baseScale.log10().pow(c.d1_25).div([c.d10,c.d5,c.d2,c.d1][costi]))+" + 1)<sup>1 ÷ 3</sup> - 1)</sup>"},
description:function(){return "Prismatic gain is "+numOrFormula(id)+"× faster (based on "+lightNames[num]+" lumens)"},
adjacent_req:[["r21_8"],["r21_8"],["r21_8"],["r22_6","r22_7","r22_8"],["r22_7","r22_9"],["r22_8","r22_9","r22_10"],["r23_6","r23_8","r23_9"],["r23_7","r23_8","r23_10"],["r23_7","r23_9"]][num],
condition:[],
visibility:function(){return true},
type:"normal",
basecost:Decimal.fromComponents_noNormalize(1,0,[6e3,12e3,3e4,1e5][costi]),
icon:icon.lumen(num)+icon.arr+icon.prismatic,
effect:function(power){return lightData[num].baseScale.log10().pow(c.d1_25).mul(g.lumens[num]).div([c.d10,c.d5,c.d2,c.d1][costi]).add(c.d1).pow(c.d1div3).sub(c.d1).mul(power).pow10()},
group:"prismal"
}
}
function particleLab2Condition(req){return (req===0)?[]:[{text:function(){return study13.rewardLabel("particleLab2")+" Level "+study13.rewardLevels.particleLab2+" / "+req},check:function(){return study13.rewardLevels.particleLab2>=req}}]}
function luckResearch(type,upg,pos,resIcon,particleLab2Req=0) {
luckUpgrades[type][upg].luckResearch = pos // too lazy to manually update luck upgrade data
let row = researchRow(pos), col = researchCol(pos)
let runeNum = (type==="unifolium")?1:(type==="duofolium")?2:(type==="trifolium")?3:(type==="quatrefolium")?4:(type==="cinquefolium")?5:functionError("luckResearch",arguments)
let adjacent_req = []
if (pos==="r29_1") {adjacent_req = ["r28_1"]}
else {
if (row!==29) adjacent_req.push("r"+(row-1)+"_"+col)
if (col!==1) adjacent_req.push("r"+row+"_"+(col-1))
}
let baseEff = [1,1,3,2,1][runeNum-1]
return {
description:function(){let eff=researchEffect(row,col);return "Add "+eff.noLeadFormat(3)+" free level"+(eff.eq(c.d1)?"":"s")+" to "+toTitleCase(type)+" "+luckUpgrades[type][upg].name},
adjacent_req:adjacent_req,
condition:particleLab2Condition(particleLab2Req),
visibility:function(){return (g.studyCompletions[10]>0)&&(study13.rewardLevels.particleLab2>=particleLab2Req)},
type:"normal",
basecost:Decimal.FC_NN(1,0,[1777777,277777,37777,47777,57777][runeNum-1]),
icon:classes.luck("L")+classes.xscript(classes.luck(runeNum)+icon.plus,resIcon),
effect:function(power){return power.mul(baseEff)},
group:"luck"
}
}
function antimatterRes1(type,pos,particleLab2Req=0) {
researchList.antimatter[type+"1"] = pos
let row = researchRow(pos)
let col = researchCol(pos)
let adjacent_req = []
if (pos==="r29_15") {adjacent_req = ["r28_15"]}
else {
if (row!==29) adjacent_req.push("r"+(row-1)+"_"+col)
if (col!==15) adjacent_req.push("r"+row+"_"+(col+1))
}
return {
description:function(){return "Anti-"+type+" dimension boost is "+percentOrMult(researchEffect(row,col),2,false)+" stronger"},
adjacent_req:adjacent_req,
condition:particleLab2Condition(particleLab2Req),
visibility:function(){return study13.rewardLevels.particleLab2>=particleLab2Req},
type:"normal",
basecost:Decimal.FC_NN(1,0,10**Math.max(axisCodes.indexOf(type)-2,5)-1),
icon:"<span style=\"color:var(--wormhole_text)\">"+type+"</span>"+icon.plus,
effect:function(power){return c.d1_01.pow(power)},
group:"antimatter"
}
}
function antimatterRes2(type,pos) {
researchList.antimatter[type+"2"] = pos
let row = researchRow(pos)
let adjacent_req = ["r"+row+"_15"]
if (row!==29) adjacent_req.push("r"+(row-1)+"_14")
return {
numDesc:function(){return researchEffect(row,14).noLeadFormat(2)},
formulaDesc:function(){return "(("+type+" ÷ 90 + 1)<sup>0.9</sup> - 1)"+formulaFormat.mult(researchPower(row,14))},
description:function(){return "Gain "+numOrFormula("r"+row+"_14")+" free anti-"+type+" axis (based on purchased amount)"},
adjacent_req:adjacent_req,
condition:[],
visibility:function(){return true},
type:"normal",
basecost:N(99999),
icon:icon["anti"+type+"Axis"]+icon.plus,
effect:function(power){return g["anti"+type+"Axis"].div(c.d30).add(c.d1).pow(c.d0_9).sub(c.d1).mul(power)},
group:"antimatter"
}
}
return {
r1_3:{
description:function(){return "Gain "+researchEffect(1,3).formatFrom1(2)+"× more exotic matter per normal axis owned (current total: "+researchEffect(1,3).pow(stat.totalNormalAxis).format(2)+"×)";},
adjacent_req:[],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d1,
icon:icon.normalaxis+icon.arr+icon.exoticmatter,
effect:function(power){return c.d1_5.pow(power);}
},
r1_5:studyVResearch("r1_5",1,"exoticmatter","exotic matter",c.ee8),
r1_6:studyVResearch("r1_6",3,"darkmatter","dark matter",N("e2e6")),
r1_8:{
description:function(){return "Multiply the effects of the first seven normal axis by "+researchEffect(1,8).formatFrom1(2);},
adjacent_req:[],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d1,
icon:icon.normalaxis+icon.plus,
effect:function(power){return c.d1_5.pow(power);}
},
r1_10:studyVResearch("r1_10",4,"masteryPower","mastery power",c.ee4),
r1_11:studyVResearch("r1_11",2,"stardust","stardust",c.ee5),
r1_13:{
description:function(){return "Gain "+researchEffect(1,13).formatFrom1(2)+"× more dark matter per dark axis owned (current total: "+researchEffect(1,13).pow(stat.totalDarkAxis).format(2)+"×)";},
adjacent_req:[],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d1,
icon:icon.darkaxis+icon.arr+icon.darkmatter,
effect:function(power){return c.d1_2.pow(power);}
},
r2_2:{
description:function(){return "Increase the X Axis effect by "+researchEffect(2,2).noLeadFormat(2)+"% per X Axis owned (current total: "+researchEffect(2,2).mul(g.XAxis).noLeadFormat(2)+"%)";},
adjacent_req:["r1_3"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d2,
icon:icon.XAxis+icon.arr+icon.XAxis,
effect:function(power){return power;}
},
r2_4:{
description:function(){return "Increase the X Axis effect by "+researchEffect(2,4).noLeadFormat(2)+"% per second in this Wormhole (current total: "+researchEffect(2,4).mul(g.truetimeThisWormholeReset).format(2)+"%)";},
adjacent_req:["r1_3"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d2,
icon:icon.time+icon.arr+icon.XAxis,
effect:function(power){return power.div(c.d10);}
},
r2_6:{
numDesc:function(){return researchEffect(2,6).sub(c.d1).mul(c.e2).noLeadFormat(3)},
formulaDesc:function(){return "log(D + 1)"+formulaFormat.mult(researchPower(2,6).div(c.d2))},
description:function(){return "Gain "+numOrFormula("r2_6")+"% more free axis from dark matter (based on total Discoveries)"},
adjacent_req:["r1_5","r1_6"],
condition:[studyReq(10,2)],
visibility:function(){return g.studyCompletions[10]>1},
type:"normal",
basecost:N(555555),
icon:icon.discovery+icon.arr+icon.normalaxis+icon.arrl+icon.darkaxis,
effect:function(power){return [g.totalDiscoveries.add1Log(c.d10),researchPower(2,6),c.d5em3].productDecimals().add(c.d1)}
},
r2_7:{
description:function(){return "Increase the X Axis effect by "+researchEffect(2,7).noLeadFormat(2)+"% per OoM of spatial energy (current total: "+researchEffect(2,7).mul(g.spatialEnergy.log10()).noLeadFormat(2)+"%)";},
adjacent_req:["r1_8"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d2,
icon:icon.energynum(4)+icon.arr+icon.XAxis,
effect:function(power){return power;}
},
r2_8:{
adjacent_req:["r1_8"],
condition:[{check:function(){return g.knowledge.gt(studies[5].unlockReq())},text:function(){return g.knowledge.format(2)+" / "+studies[5].unlockReq().format(2)+" knowledge"}},unconnectedResearchReq("r11_8")],
visibility:function(){return g.research.r11_8;},
type:"study",
basecost:N(4000),
icon:icon.study([[50,10,4],[23,37,4],[50,37,4],[77,37,4],[50,90,4]])
},
r2_9:{
description:function(){return "Increase the X Axis effect by "+researchEffect(2,9).noLeadFormat(2)+"% per dark X Axis owned (current total: "+researchEffect(2,9).mul(g.darkXAxis).noLeadFormat(2)+"%)";},
adjacent_req:["r1_8"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d2,
icon:icon.darkXAxis+icon.arr+icon.XAxis,
effect:function(power){return power.mul(c.d10);}
},
r2_10:{
numDesc:function(){return researchEffect(2,10).noLeadFormat(3)},
formulaDesc:function(){return "(("+formulaFormat.logSoftcap("D",c.e7,c.d1,g.totalDiscoveries.gte(c.e7))+" ÷ 1,000 + 1)<sup>0.25</sup> - 1)"+formulaFormat.mult(researchPower(2,10))},
description:function(){return "Stardust gain is multiplied by (Hawking radiation)<sup>"+numOrFormula("r2_10")+"</sup>, based on total Discoveries (currently equivalent to "+g.hawkingradiation.max(c.d1).pow(researchEffect(2,10)).format(2)+"× stardust)"},
adjacent_req:["r1_10","r1_11"],
condition:[studyReq(10,2)],
visibility:function(){return g.studyCompletions[10]>1},
type:"normal",
basecost:N(555555),
icon:icon.discovery+icon.arr+icon.stardust+icon.arrl+icon.hr,
effect:function(power){return Decimal.logarithmicSoftcap(g.totalDiscoveries,c.e7,c.d1).div(c.e3).add(c.d1).pow(c.d0_25).sub(c.d1).mul(power)}
},
r2_11:{
description:function(){return "<b>In Study XIII</b><br>Binding 234 is "+percentOrDiv(researchEffect(2,11).i)+" weaker<br><br><b>Outside Study XIII</b><br>Gain "+researchEffect(2,11).o.format(2)+"× mastery power"},
adjacent_req:["r1_10","r1_11"],
condition:particleLab2Condition(5),
visibility:function(){return study13.rewardLevels.particleLab2>=5},
type:"normal",
basecost:N(1e7),
icon:"<span style=\"color:var(--binding)\">B<sub>234</sub></span><br>"+icon.masteryPower+icon.plus,
effect:function(power){return {i:c.d0_9.pow(power),o:c.e100.pow(power)}},
group:"binding"
},
r2_12:{
description:function(){return "Increase the X Axis effect by "+researchEffect(2,12).noLeadFormat(2)+"% per total Discovery (current total: "+researchEffect(2,12).mul(g.totalDiscoveries).noLeadFormat(2)+"%)";},
adjacent_req:["r1_13"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d2,
icon:icon.discovery+icon.arr+icon.XAxis,
effect:function(power){return power.mul(c.d80);}
},
r2_14:{
numDesc:function(){return researchEffect(2,14).noLeadFormat(4)},
formulaDesc:function(){return researchPower(2,14).div(c.d4).noLeadFormat(4)+" ÷ (X ÷ 100 + 1)<sup>0.1</sup> + 1"},
description:function(){return "Raise the X Axis effect to the power of "+numOrFormula("r2_14")+" (decreases based on X Axis owned)";},
adjacent_req:["r1_13"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d2,
icon:icon.XAxis+icon.plus,
effect:function(power){return power.div(stat.realXAxis.div(c.e2).add(c.d1).pow(c.d0_1).mul(c.d4)).add(c.d1);}
},
r3_2:{
description:function(){return "Gain "+researchEffect(3,2).noLeadFormat(2)+" free S Axis";},
adjacent_req:["r2_2"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d3,
icon:icon.SAxis+icon.plus,
effect:function(power){return power;}
},
r3_5:{
description:function(){return "Raise the S Axis cost to the power of "+researchEffect(3,5).noLeadFormat(3);},
adjacent_req:["r2_4"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d3,
icon:classes.exoticmatter("S$")+icon.minus,
effect:function(power){return c.d0_5.pow(power);}
},
r3_6:{
description:function(){return "Gain "+researchEffect(3,6).noLeadFormat(2)+" free dark X Axis per dark S Axis owned (current total: "+researchEffect(3,6).mul(g.darkSAxis).noLeadFormat(2)+")";},
adjacent_req:["r2_6","r2_7"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d3,
icon:icon.darkSAxis+icon.arr+icon.darkXAxis,
effect:function(power){return power;}
},
r3_8:{
numDesc:function(){return researchEffect(3,8).noLeadFormat(2)},
formulaDesc:function(){return researchPower(3,8).pow10().noLeadFormat(3)+"<sup>D<sup>0.555</sup></sup>"},
description:function(){return "Multiply knowledge gain by "+numOrFormula("r3_8")+" (based on total Discoveries)"},
adjacent_req:["r2_8"],
condition:[studyReq(5,1)],
visibility:function(){return g.studyCompletions[5]>0},
type:"normal",
basecost:N(500),
icon:icon.discovery+icon.arr+icon.knowledge,
effect:function(power){return g.totalDiscoveries.pow(0.555).mul(power).pow10()},
group:"study5b"
},
r3_10:{
description:function(){return "Gain "+researchEffect(3,10).noLeadFormat(2)+" free dark X axis per dark star owned (current total: "+researchEffect(3,10).mul(g.darkstars).noLeadFormat(2)+")";},
adjacent_req:["r2_9","r2_10"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d3,
icon:icon.darkstar+icon.arr+icon.darkXAxis,
effect:function(power){return power.mul(c.d0_25);}
},
r3_11:{
description:function(){return "Raise the dark S Axis cost to the power of "+researchEffect(3,11).noLeadFormat(3);},
adjacent_req:["r2_11","r2_12"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d3,
icon:classes.darkmatter("S$")+icon.minus,
effect:function(power){return c.d0_5.pow(power);}
},
r3_14:{
description:function(){return "Gain "+researchEffect(3,14).noLeadFormat(2)+" free dark S Axis";},
adjacent_req:["r2_14"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d3,
icon:icon.darkSAxis+icon.plus,
effect:function(power){return power;}
},
r4_1:{
description:function(){return "Dark energy increases "+researchEffect(4,1).noLeadFormat(2)+"× faster";},
adjacent_req:["r3_2"],
condition:[{check:function(){return achievement.ownedInTier(5)>=15},text:function(){return achievement.ownedInTier(5)+" / 15 Tier 5 achievements"}}],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d3,
icon:icon.row4energy(1),
effect:function(power){return c.d15.pow(power);}
},
r4_2:{
description:function(){return "Stelliferous energy increases "+researchEffect(4,2).noLeadFormat(2)+"× faster";},
adjacent_req:["r3_2"],
condition:[{check:function(){return achievement.ownedInTier(5)>=15},text:function(){return achievement.ownedInTier(5)+" / 15 Tier 5 achievements"}}],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d3,
icon:icon.row4energy(2),
effect:function(power){return c.d15.pow(power);}
},
r4_3:{
description:function(){return "Gravitational energy increases "+researchEffect(4,3).noLeadFormat(2)+"× faster";},
adjacent_req:["r3_2"],
condition:[{check:function(){return achievement.ownedInTier(5)>=15},text:function(){return achievement.ownedInTier(5)+" / 15 Tier 5 achievements"}}],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d3,
icon:icon.row4energy(3),
effect:function(power){return c.d15.pow(power);}
},
r4_6:{
description:function(){return "S Axis effect"+formulaFormat.exp(researchPower(4,6))+" affects Mastery 11 (current total: ^"+researchEffect(4,6).format(4)+")";},
adjacent_req:["r3_5","r3_6"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d3,
icon:icon.SAxis+icon.arr+icon.mastery(11),
effect:function(power){return stat.SAxisEffect.pow(stat.realSAxis.mul(power));}
},
r4_7:{
numDesc:function(){return researchEffect(4,7).noLeadFormat(2)},
formulaDesc:function(){return "(log(D ÷ 100 + 10) ⇈ 1.5)"+formulaFormat.exp(researchPower(4,7))},
description:function(){return "Chroma gain is multiplied by "+numOrFormula("r4_7")+" (based on total Discoveries)"},
adjacent_req:["r2_8"],
condition:[studyReq(5,1)],
visibility:function(){return g.studyCompletions[5]>0},
type:"normal",
basecost:N(500),
icon:icon.discovery+icon.arr+icon.chroma(6),
effect:function(power){return g.totalDiscoveries.div(c.e2).add(c.d10).log10().quad_tetr(c.d1_5).pow(power)},
group:"study5b"
},
r4_9:{
numDesc:function(){return researchEffect(4,9).noLeadFormat(2)},
formulaDesc:function(){return "10<sup>log(D + 1)<sup>5.555</sup>"+formulaFormat.mult(researchPower(4,9).mul(0.0005555))+"</sup>"},
description:function(){return "Hawking radiation gain is multiplied by "+numOrFormula("r4_9")+" (based on total Discoveries)"},
adjacent_req:["r2_8"],
condition:[studyReq(5,1)],
visibility:function(){return g.studyCompletions[5]>0},
type:"normal",
basecost:N(500),
icon:icon.discovery+icon.arr+icon.hr,
effect:function(power){return [g.totalDiscoveries.add1Log(c.d10).pow(5.555),N(0.0005555),power].productDecimals().pow10()},
group:"study5b"
},
r4_10:{
description:function(){return "S Axis effect"+formulaFormat.exp(researchPower(4,10))+" affects Mastery 12 (current total: ^"+researchEffect(4,10).format(4)+")";},
adjacent_req:["r3_10","r3_11"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d3,
icon:icon.SAxis+icon.arr+icon.mastery(12),
effect:function(power){return stat.SAxisEffect.pow(stat.realSAxis.mul(power));}
},
r4_13:{
description:function(){return "Spatial energy increases "+researchEffect(4,13).noLeadFormat(2)+"× faster";},
adjacent_req:["r3_14"],
condition:[{check:function(){return achievement.ownedInTier(5)>=15},text:function(){return achievement.ownedInTier(5)+" / 15 Tier 5 achievements"}}],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d3,
icon:icon.row4energy(4),
effect:function(power){return c.d15.pow(power);}
},
r4_14:{
description:function(){return "Neural energy increases "+researchEffect(4,14).noLeadFormat(2)+"× faster";},
adjacent_req:["r3_14"],
condition:[{check:function(){return achievement.ownedInTier(5)>=15},text:function(){return achievement.ownedInTier(5)+" / 15 Tier 5 achievements"}}],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d3,
icon:icon.row4energy(5),
effect:function(power){return c.d15.pow(power);}
},
r4_15:{
description:function(){return "Meta energy increases "+researchEffect(4,15).noLeadFormat(2)+"× faster";},
adjacent_req:["r3_14"],
condition:[{check:function(){return achievement.ownedInTier(5)>=15},text:function(){return achievement.ownedInTier(5)+" / 15 Tier 5 achievements"}}],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d3,
icon:icon.row4energy(6),
effect:function(power){return c.d15.pow(power);}
},
r5_1:{
description:function(){return "The dark energy effect"+formulaFormat.exp(researchEffect(5,1))+" boosts T axis effect (currently: ^"+stat.darkEnergyEffect.pow(researchEffect(5,1)).format(4)+")";},
adjacent_req:["r4_1","r4_2","r4_3"],
condition:[],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d6,
icon:icon.energynum(1)+icon.arr+icon.TAxis,
effect:function(power){return power;}
},
r5_2:{
description:function(){return "The stelliferous energy effect"+formulaFormat.exp(researchEffect(5,2))+" boosts U axis effect (currently: ^"+stat.stelliferousEnergyEffect.pow(researchEffect(5,2)).format(4)+")";},
adjacent_req:["r4_1","r4_2","r4_3"],
condition:[],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d6,
icon:icon.energynum(2)+icon.arr+icon.UAxis,
effect:function(power){return power;}
},
r5_3:{
description:function(){return "The gravitational energy effect"+formulaFormat.exp(researchEffect(5,3))+" boosts dark U axis effect (currently: ^"+stat.gravitationalEnergyEffect.pow(researchEffect(5,3)).format(4)+")";},
adjacent_req:["r4_1","r4_2","r4_3"],
condition:[],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d6,
icon:icon.energynum(3)+icon.arr+icon.darkUAxis,
effect:function(power){return power;}
},
r5_7:{
adjacent_req:["r4_6"],
condition:[{check:function(){return stat.totalDarkAxis.gte(studies[1].unlockReq())},text:function(){return stat.totalDarkAxis.format(0)+" / "+studies[1].unlockReq().format()+" total dark axis"}}],
visibility:function(){return true;},
type:"study",
basecost:c.d12,
icon:icon.study([[50,50,6]])
},
r5_8:{
numDesc:function(){return (researchEffect(5,8).gte(c.d10)?researchEffect(5,8):researchEffect(5,8).sub(c.d1).mul(c.e2)).noLeadFormat(3)},
formulaDesc:function(){
let out = "(log(D + 1)<sup>2</sup> ÷ 100 + 1)"+formulaFormat.exp(researchPower(5,8))
if (researchEffect(5,8).lt(c.d10)) {out = "("+out+" - 1) × 100"}
return out
},
description:function(){return "The other Practical research are "+numOrFormula("r5_8")+(researchEffect(5,8).gte(c.d10)?"×":"%")+" stronger (based on total Discoveries)"},
adjacent_req:["r3_8","r4_7","r4_9"],
condition:[studyReq(5,2)],
visibility:function(){return g.studyCompletions[5]>1},
type:"normal",
basecost:N(1500),
icon:icon.discovery+icon.arr+icon.research,
effect:function(power){return g.totalDiscoveries.add(c.d1).log10().pow(c.d2).div(c.e2).add(c.d1).pow(power)},
group:"study5b"
},
r5_9:{
adjacent_req:["r4_10"],
condition:[{check:function(){return g.stardust.gte(studies[2].unlockReq())},text:function(){return g.stardust.format()+" / "+studies[2].unlockReq().format()+" stardust"}}],
visibility:function(){return true;},
type:"study",
basecost:c.d12,
icon:icon.study([[25,75,6],[75,25,6]])
},
r5_13:{
description:function(){return "The spatial energy effect"+formulaFormat.exp(researchEffect(5,13))+" boosts Row 2 Masteries (currently: ^"+stat.spatialEnergyEffect.pow(researchEffect(5,13)).format(4)+")";},
adjacent_req:["r4_13","r4_14","r4_15"],
condition:[],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d6,
icon:icon.energynum(4)+icon.arr+icon.mastery("2x"),
effect:function(power){return power;}
},
r5_14:{
description:function(){return "The neural energy effect"+formulaFormat.exp(researchEffect(5,14))+" boosts Stardust Boost 7 (currently: ^"+stat.neuralEnergyEffect.pow(researchEffect(5,14)).format(4)+")";},
adjacent_req:["r4_13","r4_14","r4_15"],
condition:[],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d6,
icon:icon.energynum(5)+icon.arr+classes.stardust("B"+classes.sub(7)),
effect:function(power){return power;}
},
r5_15:{
description:function(){return "The meta energy effect"+formulaFormat.exp(researchEffect(5,15))+" multiplies tickspeed (currently: ×"+stat.metaEnergyEffect.pow(researchEffect(5,15)).format(4)+")";},
adjacent_req:["r4_13","r4_14","r4_15"],
condition:[],
visibility:function(){return achievement.ownedInTier(5)>=15;},
type:"normal",
basecost:c.d6,
icon:icon.energynum(6)+icon.arr+icon.tickspeed,
effect:function(power){return power;}
},
r6_1:{
description:function(){return "The dark energy effect"+formulaFormat.exp(researchEffect(6,1))+" boosts Z Axis effect (currently: ^"+stat.darkEnergyEffect.pow(researchEffect(6,1)).format(4)+")";},
adjacent_req:["r5_1","r5_2","r5_3"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d8,
icon:icon.energynum(1)+icon.arr+icon.ZAxis,
effect:function(power){return power;}
},
r6_2:{
description:function(){return "The stelliferous energy effect"+formulaFormat.exp(researchEffect(6,2))+" reduces the star cost (currently: ^"+stat.stelliferousEnergyEffect.pow(researchEffect(6,2).mul(c.dm1)).format(3)+")";},
adjacent_req:["r5_1","r5_2","r5_3"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d8,
icon:icon.energynum(2)+icon.arr+icon.star()+classes.stars("$"),
effect:function(power){return power;}
},
r6_3:{
description:function(){return "The gravitational energy effect"+formulaFormat.exp(researchEffect(6,3))+" divides the dark star cost (currently: ÷"+stat.gravitationalEnergyEffect.pow(researchEffect(6,3)).format(4)+")";},
adjacent_req:["r5_1","r5_2","r5_3"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d8,
icon:icon.energynum(3)+icon.arr+icon.darkstar+classes.darkmatter("$"),
effect:function(power){return power;}
},
r6_5:{
description:function(){return "Mastery power gain accelerates "+researchEffect(6,5).mul(c.e2).noLeadFormat(2)+"% faster per achievement completed (current total: "+[researchEffect(6,5),totalAchievements,c.e2].productDecimals().noLeadFormat(2)+"%)";},
adjacent_req:["r6_6"],
condition:[studyReq(1,2)],
visibility:function(){return g.studyCompletions[1]>=2;},
type:"normal",
basecost:c.d3,
icon:icon.achievements+icon.arr+icon.masteryPower,
effect:function(power){return power.mul(c.d0_02);}
},
r6_6: {
description:function(){return "Tickspeed is "+researchEffect(6,6).mul(c.e2).noLeadFormat(2)+"% higher per achievement completed (current total: "+[researchEffect(6,6),totalAchievements,c.e2].productDecimals().noLeadFormat(2)+"%)";},
adjacent_req:["r4_7","r5_7"],
condition:[studyReq(1,1)],
visibility:function(){return g.studyCompletions[1]>=1;},
type:"normal",
basecost:c.d2,
icon:icon.achievements+icon.arr+icon.tickspeed,
effect:function(power){return power.div(c.e2);}
},
r6_8: {
description:function(){return "Hawking radiation gain is "+researchEffect(6,8).mul(c.e2).noLeadFormat(2)+"% higher per achievement completed, per purchased star (current total: "+percentOrMult([researchEffect(6,8),totalAchievements,g.stars].productDecimals().add(c.d1),2,true)+")";},
adjacent_req:["r5_7","r5_8","r5_9"],
condition:[studyReq(1,1),studyReq(2,1)],
visibility:function(){return g.studyCompletions[1]>=1&&g.studyCompletions[2]>=1;},
type:"normal",
basecost:c.d3,
icon:icon.achievements+icon.arr+icon.hr+icon.arrl+icon.star(),
effect:function(power){return power.div(c.e2);}
},
r6_9: {
description:function(){return "Unlock a secret achievement";},
adjacent_req:[],
condition:[],
visibility:function(){return g.studyCompletions[1]+g.studyCompletions[2]>0;},
type:"normal",
basecost:c.d0,
icon:"ツ"
},
r6_10: {
description:function(){return "Row 7 stars are "+researchEffect(6,10).noLeadFormat(3)+"% stronger";},
adjacent_req:["r4_9","r5_9"],
condition:[studyReq(2,1)],
visibility:function(){return g.studyCompletions[2]>=1;},
type:"normal",
basecost:c.d2,
icon:icon.star()+classes.xscript("+",classes.stars("7x")),
effect:function(power){return power.mul(c.d20);}
},
r6_11: {
description:function(){return "Each allocated star makes the Masteries in that row "+researchEffect(6,11).noLeadFormat(3)+"% stronger";},
adjacent_req:["r6_10"],
condition:[studyReq(2,2)],
visibility:function(){return g.studyCompletions[2]>=2;},
type:"normal",
basecost:c.d3,
icon:icon.star("xy")+icon.arr+icon.mastery("xy"),
effect:function(power){return power.mul(c.d1_25);}
},
r6_13: {
description:function(){return "The spatial energy effect"+formulaFormat.exp(researchEffect(6,13))+" boosts V Axis effect (currently: ^"+stat.spatialEnergyEffect.pow(researchEffect(6,13)).format(4)+")";},
adjacent_req:["r5_13","r5_14","r5_15"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d8,
icon:icon.energynum(4)+icon.arr+icon.VAxis,
effect:function(power){return power;}
},
r6_14: {
description:function(){return "The neural energy effect"+formulaFormat.exp(researchEffect(6,14))+" boosts dark W Axis effect (currently: ^"+stat.neuralEnergyEffect.pow(researchEffect(6,14)).format(4)+")";},
adjacent_req:["r5_13","r5_14","r5_15"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d8,
icon:icon.energynum(5)+icon.arr+icon.darkWAxis,
effect:function(power){return power;}
},
r6_15: {
description:function(){return "The meta energy effect"+formulaFormat.exp(researchEffect(6,15))+" boosts Hawking radiation (currently: ×"+stat.metaEnergyEffect.pow(researchEffect(6,15)).format(4)+")";},
adjacent_req:["r5_13","r5_14","r5_15"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d8,
icon:icon.energynum(6)+icon.arr+icon.hr,
effect:function(power){return power;}
},
r7_1: {
description:function(){return "The dark energy effect"+formulaFormat.exp(researchEffect(7,1))+" affects stelliferous and meta energy gain (currently: ^"+stat.darkEnergyEffect.pow(researchEffect(7,1)).format(2)+")";},
adjacent_req:["r6_1","r6_2","r6_3"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d6,
icon:icon.energynum("1")+icon.arr+icon.energynum("2,6"),
effect:function(power){return power.mul(c.d7);}
},
r7_2: {
description:function(){return "The stelliferous energy effect"+formulaFormat.exp(researchEffect(7,2))+" affects spatial and neural energy gain (currently: ^"+stat.stelliferousEnergyEffect.pow(researchEffect(7,2)).format(2)+")";},
adjacent_req:["r6_1","r6_2","r6_3"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d6,
icon:icon.energynum("2")+icon.arr+icon.energynum("4,5"),
effect:function(power){return power.mul(c.d7);}
},
r7_3: {
description:function(){return "The gravitational energy effect"+formulaFormat.exp(researchEffect(7,3))+" affects spatial and meta energy gain (currently: ^"+stat.gravitationalEnergyEffect.pow(researchEffect(7,3)).format(2)+")";},
adjacent_req:["r6_1","r6_2","r6_3"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d6,
icon:icon.energynum("3")+icon.arr+icon.energynum("4,6"),
effect:function(power){return power.mul(c.d7);}
},
r7_5: {
description:function(){return "Knowledge increases "+researchEffect(7,5).mul(c.e2).noLeadFormat(2)+"% faster per achievement completed (current total: "+[researchEffect(7,5),totalAchievements,100].productDecimals().noLeadFormat(2)+"%)";},
adjacent_req:["r6_5"],
condition:[studyReq(1,3)],
visibility:function(){return g.studyCompletions[1]>=3;},
type:"normal",
basecost:c.d4,
icon:icon.achievements+icon.arr+icon.knowledge,
effect:function(power){return power.mul(c.d0_03);}
},
r7_8: {
numDesc:function(){return c.d1.sub(researchEffect(7,8)).mul(c.e2).format(2)},
formulaDesc:function(){return "100 × (1 - ("+(totalAchievements>60?"A":("50 + A<sup>6</sup> ÷ "+N(4.6656e9).format()))+" ÷ 50)"+formulaFormat.exp(researchPower(7,8).mul(c.dm0_5))+")"},
description:function(){return "The star cost scaling is "+numOrFormula("r7_8")+"% slower (based on owned achievements)";},
adjacent_req:["r6_8"],
condition:[studyReq(1,2),studyReq(2,2)],
visibility:function(){return g.studyCompletions[1]>=2&&g.studyCompletions[2]>=2;},
type:"normal",
basecost:c.d4,
icon:icon.achievements+icon.arr+icon.star()+classes.stars("$"),
effect:function(power){return N((totalAchievements>60?totalAchievements:(50+totalAchievements**6/4.6656e9))/50).max(c.d1).pow(power.mul(c.dm0_5));}
},
r7_11: {
description:function(){return "Each purchased dark star raises the normal star cost to the power of "+researchEffect(7,11).formatFrom1(2)+" (current total: ^"+researchEffect(7,11).pow(g.darkstars).format(4)+")";},
adjacent_req:["r6_11"],
condition:[studyReq(2,3)],
visibility:function(){return g.studyCompletions[2]>=3;},
type:"normal",
basecost:c.d4,
icon:icon.darkstar+icon.arr+icon.star()+classes.stars("$"),
effect:function(power){return c.d0_99.pow(power);}
},
r7_13: {
description:function(){return "The spatial energy effect"+formulaFormat.exp(researchEffect(7,13))+" affects dark and gravitational energy gain (currently: ^"+stat.spatialEnergyEffect.pow(researchEffect(7,13)).format(2)+")";},
adjacent_req:["r6_13","r6_14","r6_15"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d6,
icon:icon.energynum("4")+icon.arr+icon.energynum("1,3"),
effect:function(power){return power;}
},
r7_14: {
description:function(){return "The neural energy effect"+formulaFormat.exp(researchEffect(7,14))+" affects stelliferous and gravitational energy gain (currently: ^"+stat.neuralEnergyEffect.pow(researchEffect(7,14)).format(2)+")";},
adjacent_req:["r6_13","r6_14","r6_15"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d6,
icon:icon.energynum("5")+icon.arr+icon.energynum("2,3"),
effect:function(power){return power.mul(c.d7);}
},
r7_15: {
description:function(){return "The meta energy effect"+formulaFormat.exp(researchEffect(7,15))+" affects dark and neural energy gain (currently: ^"+stat.metaEnergyEffect.pow(researchEffect(7,15)).format(2)+")";},
adjacent_req:["r6_13","r6_14","r6_15"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d6,
icon:icon.energynum("6")+icon.arr+icon.energynum("1,5"),
effect:function(power){return power;}
},
r8_2: {
description:function(){return "Multiply Hawking radiation by tickspeed"+formulaFormat.exp(researchEffect(8,2))+" (currently: ×"+stat.tickspeed.pow(researchEffect(8,2)).format(2)+")";},
adjacent_req:["r7_1","r7_2","r7_3"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d10,
icon:icon.tickspeed+icon.arr+icon.hr,
effect:function(power){return power.div(c.d2);}
},
r8_5: {
description:function(){return "Energy increases "+researchEffect(8,5).mul(c.e2).noLeadFormat(2)+"% faster per achievement completed (current total: "+[researchEffect(8,5),totalAchievements,100].productDecimals().noLeadFormat(2)+"%)";},
adjacent_req:["r7_5"],
condition:[studyReq(1,4)],
visibility:function(){return g.studyCompletions[1]>=4;},
type:"normal",
basecost:c.d60,
icon:icon.achievements+icon.arr+icon.energy,
effect:function(power){return power.mul(c.d0_04);}
},
r8_8: {
description:function(){return "Unlock Light"},
adjacent_req:["r7_8"],
condition:[totalStudyReq(6)],
visibility:function(){return totalStudyReq(6).check()},
type:"permanent",
basecost:c.d480,
icon:"<div style=\"position:absolute;top:0px;left:0px;height:100%;width:100%;background-image:conic-gradient(rgba(255,0,0,0.5),rgba(0,0,0,0),rgba(0,255,0,0.5),rgba(0,0,0,0),rgba(0,0,255,0.5),rgba(0,0,0,0),rgba(255,0,0,0.5))\"></div>"
},
r8_11: {
description:function(){return "Row 1 research is "+researchEffect(8,11).noLeadFormat(2)+"% stronger per purchased star (current total: "+researchEffect(8,11).mul(research.r8_11.starCount()).noLeadFormat(2)+"%)";},
adjacent_req:["r7_11"],
condition:[studyReq(2,4)],
visibility:function(){return g.studyCompletions[2]>=4;},
type:"normal",
basecost:c.d60,
icon:icon.star()+icon.arr+icon.research+classes.research(classes.sub(c.d1)),
effect:function(power){return power.mul(c.d10);},
starCount:function(){
let out = N(g.stars)
if (g.research.r9_11) out = out.add(researchEffect(9,11).mul(g.galaxies))
return out
}
},
r8_14: {
description:function(){return "Offset the star cost by "+researchEffect(8,14).noLeadFormat(2)+" star"+(researchEffect(8,14).eq(c.d1)?"":"s");},
adjacent_req:["r7_13","r7_14","r7_15"],
condition:[],
visibility:function(){return true;},
type:"normal",
basecost:c.d10,
icon:icon.star()+icon.plus,
effect:function(power){return power.mul(c.d4);}
},
r9_1: {
description:function(){return "Mental energy increases "+researchEffect(9,1).noLeadFormat(2)+"× faster";},
adjacent_req:["r9_2"],
condition:[studyReq(3,2)],
visibility:function(){return g.studyCompletions[3]>=2;},
type:"normal",
basecost:c.d40,
icon:icon.row4energy(8),
effect:function(power){return c.d30.pow(power);},
group:"energy"
},
r9_2: {
adjacent_req:["r8_2"],
condition:[{check:function(){return energyPerSec(0).gt(studies[3].unlockReq())},text:function(){return energyPerSec(0).format(2)+" / "+BEformat(studies[3].unlockReq())+" dark energy per second"}},totalStudyReq(6)],
visibility:function(){return g.studyCompletions.sum()>5;},
type:"study",
basecost:c.d360,
icon:icon.study([[50,80,5],[15.4,20,5],[84.6,20,5]])
},
r9_3: {
description:function(){return "Vacuum energy increases "+researchEffect(9,3).noLeadFormat(2)+"× faster";},
adjacent_req:["r9_2"],
condition:[studyReq(3,1)],
visibility:function(){return g.studyCompletions[3]>=1;},
type:"normal",
basecost:c.d40,
icon:icon.row4energy(7),
effect:function(power){return c.d30.pow(power);},
group:"energy"
},
r9_5:{
description:function(){return "Research 6-5, 6-6, 7-5 and 8-5 are multiplicatively "+percentOrMult(researchEffect(9,5),2,false)+" stronger per achievement (current total: "+percentOrMult(researchEffect(9,5).pow(totalAchievements),2,true)+")"},
adjacent_req:["r8_5"],
condition:[studyReq(10,1)],
visibility:function(){return g.studyCompletions[10]>0},
type:"normal",
basecost:N(11111),
icon:icon.research+classes.xscript(icon.plus,icon.achievements),
effect:function(power){return c.d1_005.pow(power);}
},
...(()=>{
let out = []
for (let i=0;i<3;i++) out.push(["r9_"+(i+7),{
numDesc:function(){return researchEffect(9,i+7).noLeadFormat(2)},
formulaDesc:function(){return "(L + 1)"+formulaFormat.exp(researchPower(9,i+7).mul(c.d2))},
description:function(){return "Chroma increases "+numOrFormula("r9_"+(i+7))+"× faster (based on "+lightNames[i]+" lumens)"},
adjacent_req:["r8_8"],
condition:[lumenReq(i,c.d1)],
visibility:function(){return true},
type:"normal",
basecost:c.d360,
icon:icon.lumen(i)+icon.arr+icon.chroma(6),
effect:function(power){return g.lumens[i].add(c.d1).pow(power.mul(c.d2))},
group:"light"
}])
return Object.fromEntries(out)
})(),
r9_11:{
description:function(){return "Add "+researchEffect(9,11).noLeadFormat(2)+" stars to the effect of research 8-11 per galaxy owned (currently: "+researchEffect(9,11).mul(g.galaxies).noLeadFormat(2)+")"},
adjacent_req:["r8_11"],
condition:[studyReq(10,2)],
visibility:function(){return g.studyCompletions[10]>1},
type:"normal",
basecost:N(22222),
icon:icon.galaxy+icon.arr+icon.star()+icon.arr+icon.research+classes.research(classes.sub(c.d1)),
effect:function(power){return power.mul(c.d3)}
},
r9_13:{
numDesc:function(){return researchEffect(9,13).noLeadFormat(2)},
formulaDesc:function(){return "10<sup>(log(S + 10)<sup>0.2</sup> - 1) × "+researchPower(9,13).mul(c.d0_08).noLeadFormat(3)+"</sup>"},
description:function(){return "Stardust boosts energy gain (currently: "+numOrFormula("r9_13")+"×)"},
adjacent_req:["r9_14"],
condition:[studyReq(4,1)],
visibility:function(){return g.studyCompletions[4]>0},
type:"normal",
basecost:N(200),
icon:icon.stardust+icon.arr+icon.energy,
effect:function(power){return [g.stardust.add(c.d10).log10().pow(0.2).sub(c.d1),c.d0_08,power].productDecimals().pow10()},
group:"stardust"
},
r9_14: {
adjacent_req:["r8_14"],
condition:[{check:function(){return g.stardust.gt(studies[4].unlockReq())},text:function(){return g.stardust.format()+" / "+studies[4].unlockReq().format()+" stardust"}},{check:function(){return effectiveStardustUpgrades()<7},text:function(){return "with no more than "+effectiveStardustUpgrades()+" / 6 Stardust upgrades"},joinWithPrevious:true},totalStudyReq(6)],
visibility:function(){return g.studyCompletions.sum()>5;},
type:"study",
basecost:N(1200),
icon:icon.study([[50,85,5],[85,50,5],[50,15,5],[15,50,5]])
},
r9_15:{
numDesc:function(){return researchEffect(9,15).noLeadFormat(2)},
formulaDesc:function(){return "10<sup>(log(S + 10)<sup>0.2</sup> - 1) × "+researchPower(9,15).mul(c.d0_1).noLeadFormat(3)+"</sup>"},
description:function(){return "Stardust boosts chroma gain (currently: "+numOrFormula("r9_15")+"×)"},
adjacent_req:["r9_14"],
condition:[studyReq(4,1)],
visibility:function(){return g.studyCompletions[4]>0},
type:"normal",
basecost:N(200),
icon:icon.stardust+icon.arr+icon.chroma(6),
effect:function(power){return [g.stardust.add(c.d10).log10().pow(0.2).sub(c.d1),c.d0_1,power].productDecimals().pow10()},
group:"stardust"
},
r10_1: {
description:function(){return "Temporal energy increases "+researchEffect(10,1).noLeadFormat(2)+"× faster";},
adjacent_req:["r9_2"],
condition:[studyReq(3,4)],
visibility:function(){return g.studyCompletions[3]>=4;},
type:"normal",
basecost:c.d40,
icon:icon.row4energy(10),
effect:function(power){return c.d30.pow(power);},
group:"energy"
},
r10_2:{
description:function(){return "All energy effects are "+researchEffect(10,2).sub(c.d1).mul(c.e2).noLeadFormat(2)+"% stronger"},
adjacent_req:["r9_1","r9_3","r10_1","r10_3"],
condition:[studyReq(10,3)],
visibility:function(){return g.studyCompletions[10]>2},
type:"normal",
basecost:N(33333),
icon:icon.energy+icon.plus.repeat(3),
effect:function(power){return c.d1_03.pow(power)}
},
r10_3: {
description:function(){return "Dimensional energy increases "+researchEffect(10,3).noLeadFormat(2)+"× faster";},
adjacent_req:["r9_2"],
condition:[studyReq(3,3)],
visibility:function(){return g.studyCompletions[3]>=3;},
type:"normal",
basecost:c.d40,
icon:icon.row4energy(9),
effect:function(power){return c.d30.pow(power);},
group:"energy"
},
r10_5: {
description:function(){return "Unlock three additional colors of Light"},
adjacent_req:["r9_5","r9_7"],
condition:[{check:function(){return stat.chromaPerSec.gte(c.d75)},text:function(){return stat.chromaPerSec.format(2)+" / 75 chroma per second"}}],
visibility:function(){return true},
type:"permanent",
basecost:N(600),
icon:"<div style=\"position:absolute;top:0px;left:0px;height:100%;width:100%;background-image:conic-gradient(rgba(0,0,0,0),rgba(255,255,0,0.5),rgba(0,0,0,0),rgba(0,255,255,0.5),rgba(255,0,255,0),rgba(255,0,255,0.5),rgba(0,0,0,0))\"></div>"
},
...(()=>{
let out = []
for (let i=0;i<3;i++) out.push(["r10_"+(i+7),{
numDesc:function(){return researchEffect(10,i+7).format(2)},
formulaDesc:function(){return "((((log(C + 1)<sup>3</sup> ÷ (log<sub>"+lightData[i].baseScale.toString()+"</sub>(C + 1) + 1)<sup>2</sup>) + 1)<sup>2</sup>)"+formulaFormat.add(g.achievement[613]?achievement(613).effect():c.d0)+")"+formulaFormat.exp(researchPower(10,i+7))},
description:function(){return "Chroma increases "+numOrFormula("r10_"+(i+7))+"× faster (based on "+lightNames[i+3]+" chroma)"},
adjacent_req:["r9_"+(i+7)],
condition:[{check:function(){return g.chroma[i+3].gt(c.e8)},text:function(){return g.chroma[i+3].format()+" / "+BEformat(c.e8)+" "+lightNames[i+3]+" chroma"}},unconnectedResearchReq("r10_5")],
visibility:function(){return g.research.r10_5},
type:"normal",
basecost:c.d360,
icon:icon.chroma(i+3)+icon.arr+icon.chroma(6),
effect:function(power){
let out = Decimal.div(g.chroma[i+3].add(c.d1).log10().pow(c.d3),g.chroma[i+3].add(c.d1).log(lightData[i].baseScale).add(c.d1).pow(c.d2)).mul(c.d2).add(c.d1).pow(c.d2)
if (g.achievement[613]) out = out.add(achievement(613).effect())
return out.pow(power)
},
group:"light"