forked from eternaldensity/Sandcastle-Builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.js
1085 lines (995 loc) · 39.7 KB
/
data.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';
var Molpy={};
Molpy.version=3.33331;
/**************************************************************
* Game Strings
*
* String constants that are used throughout the game.
*************************************************************/
Molpy.HardcodedData = function() {
Molpy.Periods = [
[9, "The Debut/What? Period"],
[23, "The Dark Period"],
[44, "The Sandcastle Period"],
[74, "The Megan Period"],
[87, "The Happiness Period"],
[104, "The Male Period"],
[124, "The Rebuild Period"],
[136, "Age of the Slow Pixel"],
[145, "The Great Expansion"],
[167, "The Populated Period of Expansion"],
[178, "\"Wanna Swim?\" Period"],
[182, "Second Age of the Slow Pixel"],
[211, "Operation Connect Castle"],
[233, "Attack of the Trebuchet"],
[324, "Second Megan Period"],
[375, "The Architect Age"],
[420, "Recursion"],
[462, "The Poles"],
[478, "The Scaffolding"],
[493, "The Tasting"],
[543, "The Scaffolding continued"],
[582, "The Observation/Observed Platform"],
[666, "The Building of the Rooks"],
[725, "The Next Level"],
[798, "Third Megan Period"],
[802, "The Little French Girl Period"],
[826, "Fourth Megan Period"],
[840, "\"The Sea Can Do Whatever It Wants\" Period"],
[868, "The Additional Flags Period"],
[874, "Third Age of the Slow Pixel"],
[882, "The Bag Period"],
[971, "The Fading"],
[997, "The First Journey Period"],
[1001, "The Fake Loop"],
[1021, "Second Journey Period"],
[1077, "The River Period"],
[1121, "Third Journey Period"],
[1149, "Second River Period"],
[1228, "Fourth Journey Period"],
[1300, "The Hills Period"],
[1336, "Fifth Journey Period"],
[1359, "The Tree Period"],
[1376, "Cueball's Quest"],
[1403, "Sixth Journey Period"],
[1423, "Third River Period"],
[1502, "Seventh Journey Period"],
[1552, "\"Wow\" Baobab Period"],
[1578, "Vineyard Period"],
[1611, "Questioning the Quest at the Abandoned Habitation"],
[1661, "Megan's Quest"],
[1725, "Into the Mountains"],
[1765, "\"Snake!\""],
[1825, "The Tree Stumps"],
[1882, "Chirp"],
[1928, "The Tiny River Period"],
[1969, "The \"Wowterfall\" Period"],
[2014, "Eighth Journey Period"],
[2065, "The Epic of Pricklymolp"],
[2141, "The Fluttermolpy Discussion"],
[2178, "The Weird Tree Period"],
[2225, "The Abandoned Former Habitation on the Mountain Plateau"],
[2317, "The Attack"],
[2356, "Ninth Journey Period"],
[2388, "The Sunset Period"],
[2440, "Cueball's Watch"],
[2530, "Megan's Watch"],
[2567, "Cueball's Awakening"],
[2610, "The Observation at the Summit"],
[2615, "The Bucket Period"],
[2645, "Into Thin Air"],
[2693, "First Encounter"],
[2714, "Communication Period"],
[2737, "Pictogram Period"],
[2788, "Tenth Journey Period"],
[2801, "The Map Period"],
[2813, "The Flag Period"],
[2839, "The City Period"],
[2856, "The Castle Period"],
[2920, "The Understanding"],
[3015, "RUN."],
[3029, "Meeting The Forty"],
[3088, "The Raftcastle"],
[3094, "The End"],
]
Molpy.Eras = [
[124, "The Pre-expansion Era"],
[420, "The Castleiferous Era"],
[582, "The Industrial Era"],
[798, "The Developing Era"],
[971, "The Enlightenment Era"],
[1021, "The Shoreline Era"],
[1228, "The River Era"],
[1423, "The Hills and Forest Era"],
[1661, "The Discovery Era"],
[2356, "The Mountain Era"],
[1661, "The Night Era"],
[2615, "The Summit Era"],
[2813, "The Contact Era"],
[2920, "The Civilization Era"],
[3094, "The Rescue Era"]]
Molpy.Eons = [
[971, "The Sandcastle Eon"],
[2615, "The Journey Eon"],
[3094, "The Encounter Eon"]]
Molpy.titles = [
'Sandcastle Builder',
'Sandcastle Builder',
'Sandcastle Builder',
'Sandcastle Builder',
'Sandcastle Builder',
'Sandy Clicker',
'Injokes: The Game',
'Hotdog of Things that are on my side for 600, Alex',
'"The Dwarf Fortress of Idle Games" (hardly)',
'"Skyrim with Guns" (would be a far cry better than this)',
'Still a better love story than Twilight',
'Serious Business'];
Molpy.defaultLayoutData="3.2PPdefaultP00010010000000P11110111110000111000000000P517C0S449C-1S557C463S0C-2S0C48S-2C134S944C463S0C701S236C135S0C134S718C675S1060C675S547C675S889C675S557C0S557C228S0C535S0C761S1115C0S1115C237S1241C685S1096C155S1094C664S1096C365S1096C440S1499C0SP385C220S515C40S556C84S554C207S368C51S320C385S228C386S556C214S556C220S545C201S1499C576S382C100S383C211S258C61S382C195S383C60S382C59S381C209S74C237SP";
Molpy.defaultLayoutData2="3.2PPdefault2P00010010000000P11111011111111111111000011P517C0S449C-1S557C463S0C-2S0C48S-2C134S944C463S0C701S236C135S0C134S718C675S1060C675S547C675S889C675S557C0S557C228S0C535S0C761S1115C0S1115C237S1241C685S1096C155S1094C664S1096C365S1096C440S1499C0SP385C220S515C40S556C84S554C207S368C51S320C385S228C386S556C214S556C220S545C201S1499C576S382C100S383C211S258C61S382C195S383C60S382C59S381C209S74C237SP";
{//#region puns
Molpy.bp = [
"One True Comic II: The Baginning",
"One True Comic 2: Electric Bagaloo",
"2 Bags 2 Curious",
"The Re-Adventures of Bagsitting",
"Conan the Bagbarian 2",
"Bag to the Future",
"Bag Runner 2: The Last Replicant",
"Bag Wars - Episode V - The Sandcastle Strikes Back",
"A Tale of Two Bags",
"Cueball: The Guy Who Bagged Me",
"Harry Potter and the Chamber of Bags",
"Bagman and Robin",
"Bagman Forever",
"Bagman Begins",
"Bagman: The Dark Nip",
"Bagman: The Dark Watery Stuff Rises",
"The Passion of the Bags",
"The Good The Bag And The Ugly",
"B For Bagdetta",
"Theater Of Bags",
"Bag Of Blood",
"The Day The Bag Stood Still ",
"Bag Wars Episode IV - A New Loop",
"The Big Bag Theory",
"American Baggy",
"Cue and Meg's Excellent Bagventure",
"The Bagfather: Part II",
"The Hunt for Bag October",
"Bag Storm Rising",
"Clear and Present Bags",
"The Temporal Strikes Bag",
"The Bagmaker",
"The Pelican Bag",
"The Gingerbag Man",
"Runaway Bag",
"Transbaggers",
"Bagformers",
"The Hunger Bags",
"Rucksack at Tiffany's",
"Bagglestar Galactica",
"Cool Bag Loop",
"Groundbag Day",
"Bag2: Hyperbag",
"Bagger's Game",
"Bagger's Shadow",
"Speaker for the Bag",
"Bagocide",
"Shadow of the Bagemon",
"The Lord of the Bags 1: The Fellowship of the Bags",
"The Lord of the Bags 2: The Two Sandcastles",
"The Lord of the Bags 3: The Return of La Petite",
"Requiem for a Bag",
"The Bag Before Time",
"Baggie Nights",
"Bagnolia",
"Punch-Drunk Bags",
"There Will Be Bags",
"The Bagloliers",
"Children of the Bag",
"Bagcatcher",
"Bagstarter",
"The Green Bag",
"The Running Bag",
"Bag By Me",
"Firebag",
"Buffy The Bag Slayer",
"Baghouse",
"Baggett Halverson",
"Bagengers",
"Agents of B.A.G.",
"Bagel",
"Cabin in the Bag",
"Bagenity",
"Bag Suns",
"Dr. Horrible's Sing-Along Bag",
"Much Abag about Nothing",
"Citizen Bag",
"Seven Bagurai",
"Bag Ocean 3: Until the End of Time",
"No Castle for Old Bags",
"Casabaga",
"Lawrence of Bagrabia",
"Bagard of Oz",
"The Andromeda Bag",
"The Terminal Bag",
"Eaters of the Bag",
"The Great Bag Robbery",
"Rising Bag",
"The Lost Bag",
"Bagframe",
"State of Bag",
"Drop That Strangebag, or: How I Learned to Stop Worrying and Love the Loop",
"Jurassic Bag",
"Bag Trek Into Darkness",
"The Bagtrix Reloaded",
"Bag Window",
"The Thomas Crown Bag",
"3 Bags Of The Condor",
"A Good Day to Bag Hard",
"Bag to the Beach",
"The Hitchhiker's Guide to Baggage",
"The Bag at the End of the Universe",
"Bags, the Universe and Everything",
"So Long and Thanks for All the Bags",
"Mostly Bagless",
"And Another Bag",
"Beauty and the Bag",
"Bagspotting",
"Three bags and a baby",
"Bag Life!",
"Rosencrantz & Guildenstern are Bags",
"Men in Bag",
"Secrets of the Bag-Bag Sisterhood",
"Fried Bag Tomatoes",
"Bag Beauty",
"Singing in the Bag",
"Fiddler in the Bag",
"Return to Bag Mountain",
"Bags Bunny",
"Brokebag Mountain: Two in the Bag",
"Breaking Bag",
"It's a Bag, Bag, Bag, Bag World",
"B*A*G*S",
"Bag Trouble in Little China",
"'<i>The Papal Pun- <b>A Bagwork Orange</b></i>'",
"Bag Story",
"A Bag's Life",
"Bagsters, Inc.",
"Bagging Nemo",
"BAGG·E",
"Bagatouille",
"The Inbagibles",
"The Incredibags",
"Bagalon 5",
"The Bag Lebowski",
"Silence of the Bags",
"Starbag SB-1",
"Starbag Atlantis",
"Starbag Universe",
"Tron Bagacy",
"The Last Bagfighter",
"Bagaxy Quest",
"The Italian Bag",
"Half-Bag 3 Confirmed!",
"The Big Bag Wolpy",
"The Bag of Music",
"Iron Bag",
"Baglander",
"The Molpy, the Bag, and the Castle",
"Treasures of the Bag",
"Romeo and Bagguette",
"Bags for Dummies",
"Tomb Bagger",
"Raiders of the Lost Bag",
"Bagnado",
"Bag vs. Predator",
"Bagception",
"Baginator",
"The Legend of Bagger Vance",
"Bag of Our Fathers",
"Go ahead, make my bag!",
"We are the Bags. Resistance is futon",
"Three Men and a Baggy",
"12 Angry Bags",
"Bagland",
"Bag of The Tentacle",
"Full Metal Bag",
"The Bag on the River Kwai",
"The Bag Sleep",
"Bag Business",
"Bag Fiction",
"Once Upon a Time in Bag",
"The Third Bag",
"Raging Bag",
"Inglorious Bagterds",
"Bagzilla",
"Bagatar",
"Bagtanic",
"Clash of the Bags",
"For a Bagful of Dollars",
"Bill Bag: Vol 1",
"Million Dollar Baggy",
"Rosemanry's Baggy",
"A Streetbag Named Desire",
"Bag of Steel",
"Pacific Bag",
"Bags of Bloodsteel",
"Bag for the Holidips",
"Knights of Bagassdom",
"The Bag Commandments",
"Dr. Bag",
"From Russia With A Bag",
"Goldbag",
"Thunderbag",
"Bags Only Live Twice",
"On Her Majesty's Secret Bag",
"Bags Are Forever",
"Live and Let Bag",
"The Man with the Golden Bag",
"The Bag Who Loved Me",
"Bagraker",
"For Your Bags Only",
"Octobaggy",
"A View to a Bag",
"The Living Baglights",
"Licence to Bag",
"GoldenBag",
"Bag Never Dies",
"The Bag is Not Enough",
"Die Another Bag",
"Bag Royale",
"Bag of Solace",
"Bagfall",
"Bagmember",
"Double Bag Seven",
"Ocean's Bag",
"The Royal Tenenbags",
"Bags Wide Shut",
"A Bag Day's Night",
"The Baggit",
"Finnegan's Bag",
"One Hundred Bags of Solitude",
"Bagstock: 3 Dips Of Cuegan And Megball",
"The Sandcastle for Bagladesh",
"Jimi Hendrix and Bag of Gypsys: Live at the Sandcastle East",
"U2: Sandcastles And Bags",
"Neil Young: Bag of Gold",
"Divine Bagness",
"The Bag Holly Story",
"Immortal Sandcastle",
"Bag The Line",
"Pump Up The Sandcastle (Wait Hard!)",
"Phantom of the Sandcastle",
"The Bag Violin",
"A Little Bag Music",
"A Chorus Bag",
"My Bag Lady",
"My Fair Bag",
"Sweeny Todd: The Demon Bagger Of Fleet Street",
"The Baggy Horror Sandcastle Show",
"Bag# For Experienced Programmers",
"Upgrading and Repairing BAGs",
"Bag Design for Engineers",
"Bag Forms 2.0 Programming",
"Human-Bag Interaction",
"Steal This Bag Book 4.0",
"Visual BAG .NET in Easy Steps",
"The Bag Practice of Statistics",
"Bagculus",
"Security in Bagging",
"BAG/IP Protocol Suite",
"Linear Bagular",
"Accounting: What the Bags Mean",
"BAGIX Network Programming",
"Object-Oriented Systems Analysis and Design with BAG"
]
}
{//#REGION Lyrics :P
Molpy.cms = [
"Coma Molpy Style",
"Molpy Style",
"Blitzin' the thread, just one more page until I ketch it",
"Read through the decrees, signposts, ONGs and ponder ev'ry tidbit",
"All I need is just a bit of Time to read all of it",
"But Outside says I have to quit",
"Mustard might appear",
"The other night we saw an extra star just disappear",
"Some extra Cueganites went too, turned back into thin air",
"An extra alt-text dot is gone as well, will we ever know where?",
"Were they ever there?",
"In the O.T.T., follow the decree",
"Cos I'm the pope, hey!",
"So post some rope, hey!",
"When you're postin', you can be boastin'",
"About out aims, hey!",
"To have no flames, hey!",
"Cos we turn our disagreements into games, -ames, -ames, -ames, -a-a-a-a-a-a-a-aaaa...",
"Coma Molpy Style",
"Molpy Style",
"Co - co - co - co - Coma Molpy Style",
"Molpy Style",
"Co - co - co - co - Coma Molpy Style",
"Heyyyy, Neat Sandcastle",
"Co - co - co - co - Coma Molpy Style",
"Heyyyy, Neat Sandcastle",
"Co - co - co - co - Coma Molpy Style",
"Back in the present wearing hats with all the OTTers",
"Bumping the firstposts, and discussing all the Elders",
"Some have not been seen in wix, so have they yet forgot us?",
"But some are still posting with us",
"There's a spoiler here!",
"It is a link to the live image, not the hashed one there!",
"Don't want the blitzing to be ruined that would not be fair",
"Better edit the hash in and next time ONG with care",
"Next time that you dare",
"Postcounts growin', the cakes are flowin'",
"The lurkers lurk, hey",
"The m*stards ch*rp, hey",
"You make up your mind, to not fall behind",
"Cannot shirk, hey",
"The speed's berserk, hey",
"Staying up forever just can't work, -erk, -erk, -erk, -r-r-r-r-r-r-r-r-rrrrr...",
"Coma Molpy Style",
"Molpy Style",
"Co - co - co - co - Coma Molpy Style",
"Molpy Style",
"Co - co - co - co - Coma Molpy Style",
"Heyyyy, Neat Sandcastle",
"Co - co - co - co - Coma Molpy Style",
"Heyyyy, Neat Sandcastle",
"Co - co - co - co - Coma Molpy Style",
"Walk with me, until you see the tree",
"Molpy molpy beanie river grapevine sea!",
"Walk with me, avoid all heresy",
"Molpy molpy bucket river OTC! (ain't no redunakitty!)",
"Coma Molpy Style",
"Co-co-co - co-co-co",
"Heyyyy, Neat Sandcastle",
"Co - co - co - co - Coma Molpy Style",
"Heyyyy, Neat Sandcastle",
"Co - co - co - co - Coma Molpy Style",
"Co-co-co - co-co-co",
"Coma Molpy Style"
]
}
{ //#region more lyrics
var bdy = 'Boom De Yada';
Molpy.love=[
'I love sandcastles',
'I love our weird haiku',
'I love the Book of Time',
'I love to chart all you!',
'I love the whole thread',
'And all its hatted folks',
bdy,bdy,bdy,bdy,
'I love sigcouragement',
'amu<span class="faded">semen</span>tcoffeesea',
'I love the NewPixBot',
'I love the Wiki!',
'I love the whole thread',
'And all its mysteries',
bdy,bdy,'Bboz Dr Yndn','Bboz Dr Yndn',
'I love photomanips',
'I love our visitors',
'I love to make you hats!',
'I love inquisitors',
'I love the whole thread',
'The future\'s pretty cool!',
bdy,bdy,bdy,bdy,
'I love to journey',
'I love our beesnakes two',
'I love Time-mapping',
'I love to cupcake you!',
'I love the whole thread',
'and all its footnote jokes',
bdy,bdy,bdy,bdy,
'I love newpages',
'I love my flashy gif',
'I <small>(might)</small> love waffles...',
'I love to make you scripts',
'I love the whole thread',
'And all its mysteries',
bdy,bdy,bdy,'<small>'+bdy+'</small>',
'I love d-dactyls',
'I love our blitzers',
'I love to molpy-hunt',
'I love the whispers',
'I love the whole thread',
'The future\'s pretty cool!',
bdy,bdy,'<div class="flip">'+bdy+'</div>','<div class="flip">'+bdy+'</div>'
];
}
}
Molpy.CheckBuyUnlocks = function(tool) {
if(Molpy.needlePulling) return;
var me = Molpy.SandTools['Bucket'];
if(me.amount >= 1) Molpy.UnlockBoost('Bigger Buckets');
if(me.amount >= 4) Molpy.UnlockBoost('Huge Buckets');
if(me.amount >= Molpy.npbDoubleThreshold) Molpy.UnlockBoost('Carrybot');
if(me.amount >= 30) Molpy.UnlockBoost('Buccaneer');
if(me.amount >= 50) Molpy.UnlockBoost('Bucket Brigade');
if(me.amount >= 100 && Molpy.Earned('Flung')) Molpy.UnlockBoost('Flying Buckets');
me = Molpy.SandTools['Cuegan'];
if(me.amount >= 1) Molpy.UnlockBoost('Helping Hand');
if(me.amount >= 4) Molpy.UnlockBoost('Cooperation');
if(me.amount >= 8) Molpy.UnlockBoost('Megball');
if(me.amount >= Molpy.npbDoubleThreshold) Molpy.UnlockBoost('Stickbot');
if(me.amount >= 40) Molpy.UnlockBoost('The Forty');
if((me.amount >= 100) && Molpy.Earned('Flung')) Molpy.UnlockBoost('Human Cannonball');
me = Molpy.SandTools['Flag'];
if(me.amount >= 1) Molpy.UnlockBoost('Flag Bearer');
if(me.amount >= 2) Molpy.UnlockBoost('War Banner');
if(me.amount >= 6) Molpy.UnlockBoost('Magic Mountain');
if(me.amount >= Molpy.npbDoubleThreshold) Molpy.UnlockBoost('Standardbot');
if(me.amount >= 25) Molpy.UnlockBoost('Chequered Flag');
if(me.amount >= 40) Molpy.UnlockBoost('Skull and Crossbones');
if((me.amount >= 100) && Molpy.Earned('Flung')) Molpy.UnlockBoost('Fly the Flag');
me = Molpy.SandTools['Ladder'];
if(me.amount >= 1) Molpy.UnlockBoost('Extension Ladder');
if(me.amount >= Molpy.npbDoubleThreshold) Molpy.UnlockBoost('Climbbot');
if(me.amount >= 25) Molpy.UnlockBoost('Broken Rung');
if((me.amount >= 100) && Molpy.Earned('Flung')) Molpy.UnlockBoost('Up Up and Away');
me = Molpy.CastleTools['NewPixBot'];
if(me.amount >= 3) Molpy.UnlockBoost('Busy Bot');
if(me.amount >= 8) Molpy.UnlockBoost('Robot Efficiency');
if(me.amount >= Molpy.npbDoubleThreshold && Molpy.Got('Robot Efficiency')) Molpy.UnlockBoost('Recursivebot');
if(me.amount >= 17) Molpy.UnlockBoost('HAL-0-Kitty');
if(me.amount >= 22 && Molpy.Got('DoRD')) Molpy.UnlockBoost('Factory Automation');
me = Molpy.CastleTools['Trebuchet'];
if(me.amount >= 1) Molpy.UnlockBoost('Spring Fling');
if(me.amount >= 2) Molpy.UnlockBoost('Trebuchet Pong');
if(me.amount >= 5) Molpy.UnlockBoost('Varied Ammo');
if(me.amount >= Molpy.npbDoubleThreshold) Molpy.UnlockBoost('Flingbot');
if(me.amount >= 20) Molpy.UnlockBoost('Throw Your Toys');
if(me.amount >= 50) Molpy.EarnBadge('Flung');
me = Molpy.CastleTools['Scaffold'];
if(me.amount >= 2) Molpy.UnlockBoost('Precise Placement');
if(me.amount >= 4) Molpy.UnlockBoost('Level Up!');
if(me.amount >= Molpy.npbDoubleThreshold) Molpy.UnlockBoost('Propbot');
if(me.amount >= 20) Molpy.UnlockBoost('Balancing Act');
me = Molpy.CastleTools['Wave'];
if(me.amount >= 2) Molpy.UnlockBoost('Swell');
if(me.amount >= Molpy.npbDoubleThreshold) Molpy.UnlockBoost('Surfbot');
if(me.amount >= 30) Molpy.UnlockBoost('SBTF');
me = Molpy.SandTools['Bag'];
if(me.amount >= 2) Molpy.UnlockBoost('Embaggening');
if(me.amount >= Molpy.npbDoubleThreshold) Molpy.UnlockBoost('Luggagebot');
if(me.amount >= 30) Molpy.UnlockBoost('Bag Puns');
if((me.amount >= 100) && Molpy.Earned('Flung')) Molpy.UnlockBoost('Air Drop');
var you = me;
me = Molpy.CastleTools['River'];
if(me.amount && you.amount) Molpy.UnlockBoost('Sandbag');
if(me.amount >= Molpy.npbDoubleThreshold) Molpy.UnlockBoost('Smallbot');
me = Molpy.SandTools['LaPetite'];
if(me.amount > 1000) {
Molpy.UnlockBoost('Frenchbot');
}
if(Molpy.Earned('Fractals Forever') && !Molpy.Got('Fractal Sandcastles')) {
Molpy.UnlockBoost('Fractal Sandcastles');
Molpy.Boosts['Fractal Sandcastles'].power = 0;
Molpy.Boosts['Fractal Sandcastles'].bought = 1; //woo freebie!
Molpy.boostRepaint = 1;
Molpy.recalculateDig = 1;
Molpy.BoostsOwned++;
}
if(Molpy.Earned('Unreachable?')) Molpy.UnlockBoost("Chateau");
if(Molpy.Boosts['Castles'].spent > 2e8) {
Molpy.EarnBadge('Big Spender');
}
if(Molpy.Boosts['Castles'].spent > 8e12) {
Molpy.EarnBadge('Valued Customer');
}
if(Molpy.BadgesOwned >= 69) {
Molpy.UnlockBoost('Ch*rpies');
}
if(Molpy.SandToolsOwned >= 200) Molpy.EarnBadge('Beachscaper');
if(Molpy.CastleToolsOwned >= 100) Molpy.EarnBadge('Beachmover');
if(Molpy.SandToolsOwned >= 1000) Molpy.EarnBadge('Beachomancer');
if(Molpy.CastleToolsOwned >= 500) Molpy.EarnBadge('Beachineer');
if(Molpy.BoostsOwned >= 50) Molpy.EarnBadge('Better This Way');
if(Molpy.SandToolsOwned >= 2101) Molpy.EarnBadge('All Your Base');
if(Molpy.SandToolsOwned >= 3000) Molpy.EarnBadge('Look Before You Leap');
if(Molpy.CastleToolsOwned >= 4000) Molpy.EarnBadge('Fully Armed and Operational Battlestation');
if(Molpy.SandToolsOwned > 9000) Molpy.EarnBadge('WHAT');
if(Molpy.SandToolsOwned + Molpy.CastleToolsOwned >= 40000) Molpy.EarnBadge('\\/\\/AR]-[AMMER');
if(Molpy.Got('Ninja Builder') && Molpy.Boosts['GlassBlocks'].power > 10) Molpy.UnlockBoost('Glass Jaw');
if(Molpy.redactedClicks >= 554 && (Molpy.Got('Overcompensating') || Molpy.Got('Doublepost'))) {
Molpy.UnlockBoost('RRSR');
} else {
Molpy.LockBoost('RRSR'); //prevent use in shortpix!
}
if(Molpy.GlassCeilingCount()) Molpy.GlassCeilingUnlockCheck();
if(Molpy.SandToolsOwned >= 123) Molpy.UnlockBoost('Sand Tool Multi-Buy');
if(Molpy.CastleToolsOwned >= 234) Molpy.UnlockBoost('Castle Tool Multi-Buy');
if(Molpy.Got('NavCode')) //just in case they didn't earn it the normal way
{
Molpy.EarnBadge('On the 12th Dip of Judgement');
}
if(Molpy.groupBadgeCounts.discov > 10 && Molpy.Earned("Dude, Where's my DeLorean?")) {
Molpy.UnlockBoost('Memories Revisited');
}
if(Molpy.groupBadgeCounts.discov > 50 && Molpy.Got('Memories Revisited')
&& Math.abs(Molpy.newpixNumber - Molpy.highestNPvisited) >= 20) {
Molpy.UnlockBoost('Now Where Was I?');
}
if(Molpy.groupBadgeCounts.discov > 100) {
Molpy.UnlockBoost('Stealth Cam');
}
if(Molpy.groupBadgeCounts.monums > 10 && Molpy.Got('Memories Revisited')) {
Molpy.UnlockBoost('Mind Glow');
}
if(Molpy.groupBadgeCounts.monumg > 10 && Molpy.Got('Memories Revisited')) {
Molpy.UnlockBoost('Memory Singer');
}
if(Molpy.Has('GlassBlocks', 7016280)) Molpy.EarnBadge('Pyramid of Giza');
if(Molpy.Has('GlassChips', 640000)) Molpy.EarnBadge('Personal Computer');
var upLevel = (Molpy.Got('Riser') ? 1 : 500);
if(Molpy.Boosts['Sand Purifier'].power > upLevel) Molpy.UnlockBoost('Seaish Glass Chips');
if(Molpy.Boosts['Glass Extruder'].power > upLevel) Molpy.UnlockBoost('Seaish Glass Blocks');
if(!isFinite(Math.pow(200, Molpy.Boosts['RB'].bought))) Molpy.UnlockBoost('Knitted Beanies');
if(!isFinite(Math.pow(2, Molpy.Boosts['WWB'].bought - 5))) Molpy.UnlockBoost('Space Elevator');
if(Molpy.groupBadgeCounts.discov > 5 && Molpy.Earned('discov1')) Molpy.UnlockBoost('Discovery Detector');
if(Molpy.Got('TF')) Molpy.UnlockBoost('AD');
if(!Molpy.Earned('Neat!') && Molpy.SandTools['Bucket'].amount > 1000000) {
var neatif = Molpify(Molpy.SandTools['Bucket'].amount, 3);
var t = Molpy.tfOrder.length;
var allsame = 1;
while(t-- && allsame) {
var tool = Molpy.tfOrder[t];
if(Molpify(tool.amount, 3) != neatif) allsame = 0;
}
if(allsame) Molpy.EarnBadge('Neat!');
}
if(Molpy.Boosts['AC'].power >= 230) Molpy.EarnBadge('Mains Power');
if(Molpy.Boosts['AC'].power >= 50) Molpy.EarnBadge('It Hertz');
if(Molpy.Boosts['AC'].power >= 500) Molpy.UnlockBoost('Rob');
Molpy.faCosts = [55, 65, 85, 115, 145, 175, 205, 240, 280, 330, 440, 560, 700, 900, 1200, 1500];
if(Molpy.Got('Factory Expansion')) {
if(Molpy.Got('Cracks') || Molpy.Got('Aleph One'))
for( var n = 1e6; isFinite(n); n *= 1000)
Molpy.faCosts.push(n)
else
for( var n = 1e6; Molpy.faCosts.length < 60; n *= 1000)
Molpy.faCosts.push(n);
}
if(!tool) Molpy.RefreshOptions();
}
Molpy.jDipBoosts = ['NavCode', 'Irregular Rivers', 'Big Splash', 'Stacked', 'Minigun', 'Ninja Assistants'];
Molpy.CheckDoRDRewards = function(automationLevel) {
if(Molpy.Got('Factory Automation')) {
Molpy.Boosts['Blast Furnace'].department = 1;
}
if(Molpy.Got('SBTF')) {
Molpy.Boosts['Castle Crusher'].department = 1;
}
if(Molpy.Earned('Ninja Omnipresence') && Molpy.Got('Active Ninja')) {
Molpy.Boosts['Ninja League'].department = 1;
}
if(Molpy.Earned('Ninja Pact') && Molpy.Got('Ninja League')) {
Molpy.Boosts['Ninja Legion'].department = 1;
}
if(Molpy.redactedClicks >= 320 && (Molpy.Got('Overcompensating') || Molpy.Got('Doublepost'))) {
Molpy.Boosts['Redunception'].department = 1;
} else {
Molpy.LockBoost('Redunception'); //prevent use in shortpix!
Molpy.Boosts['Redunception'].department = 0;
}
if(Molpy.redactedClicks >= 776) {
Molpy.Boosts['Logicat'].department = 1;
}
if(Molpy.redactedClicks >= 431) {
Molpy.Boosts['Technicolour Dream Cat'].department = 1;
}
Molpy.Boosts['RRR'].department = 1 * (Molpy.Boosts['Panther Salve'].power > 200);
Molpy.Boosts['Phonesaw'].department = 1 * (Molpy.Boosts['VJ'].power >= 88);
var found = 0;
for( var i in Molpy.jDipBoosts) {
var me = Molpy.Boosts[Molpy.jDipBoosts[i]];
if(found && !me.unlocked) me.department = 1;
if(me.unlocked) found++;
}
if(found == Molpy.jDipBoosts.length) {
Molpy.EarnBadge('Machine Learning');
}
Molpy.Boosts['Facebugs'].department = 1 * (Molpy.groupBadgeCounts.discov > 20 && Molpy.Got('Ch*rpies'));
Molpy.Boosts['Badgers'].department = 1 * (Molpy.groupBadgeCounts.monums > 20 && Molpy.Got('Facebugs'));
Molpy.Boosts['Mushrooms'].department = 1 * (Molpy.groupBadgeCounts.monums > 40 && Molpy.Got('Facebugs'));
Molpy.CheckBlackprintDepartment();
Molpy.Boosts['Fractal Fractals'].department = 1 * (Molpy.Boosts['Fractal Sandcastles'].power >= 120);
if(Molpy.Boosts['AC'].power && Molpy.Boosts['AC'].power > 180) {
Molpy.Boosts['Vault Key'].department = (Molpy.Boosts['Locked Vault'].unlocked || flandom(3) == 0
&& Molpy.Got('Keygrinder'))
} else {
var key = Molpy.Boosts['Crate Key'];
key.department = 0;
if((Molpy.Boosts['Locked Crate'].unlocked || Molpy.Got('The Key Thing')) && automationLevel >= 10
&& flandom(3) == 0 && Molpy.Got('Keygrinder')) {
key.department = 1;
}
}
Molpy.CheckASHF();
var i = 10;
var b = 1 * Molpy.Earned('Ceiling Broken');
while(i--) {
Molpy.Boosts['Glass Ceiling ' + i].department = b;
}
b = 1 * Molpy.Earned('Ceiling Disintegrated');
Molpy.Boosts['Glass Ceiling 10'].department = b;
Molpy.Boosts['Glass Ceiling 11'].department = b;
if(Molpy.Got('Air Drop')) Molpy.Boosts['Schizoblitz'].department = 1;
if(Molpy.Got('Free Advice')) {
Molpy.Boosts['Glass Ceiling 0'].department = 1;
if(Molpy.Earned('Beachomancer')) Molpy.Boosts['BBC'].department = 1;
}
Molpy.Boosts['Ruthless Efficiency'].department = 1 * (Molpy.Boosts['Glass Chiller'].power >= 1234);
Molpy.Boosts['Break the Mould'].department = 1 * (Molpy.Boosts['Break the Mould'].power >= 100);
Molpy.Boosts['PC'].department = 1 * (Molpy.Got('TF') && Molpy.CastleTools['NewPixBot'].amount >= 5000);
Molpy.Boosts['Panther Poke'].department = 1 * (automationLevel > 8 && Molpy.redactedClicks > 2500
&& Molpy.Got('LogiPuzzle') && !Molpy.Has('LogiPuzzle', Molpy.PokeBar()) && flandom(4) == 0);
Molpy.Boosts['GM'].department = 1 * (Molpy.Boosts['TF'].manualLoaded >= 1e6);
Molpy.Boosts['GL'].department = 1 * (Molpy.Boosts['TF'].manualLoaded >= 5e6 || Molpy.Got('Thunderbird'));
Molpy.Boosts['Cold Mould'].department = Molpy.Got('SMM');
Molpy.Boosts['Such Glass'].department = 1 * (Molpy.SandTools['Bucket'].amount > 2e11) * (Molpy.ninjaStealth > 2e8);
Molpy.Boosts['Ninja Ninja Duck'].department = 1 * (Molpy.ninjaStealth > 33333333);
Molpy.Boosts['SilverCard'].department = Molpy.Earned('Big Spender');
Molpy.Boosts['GoldCard'].department = Molpy.Earned('Valued Customer');
Molpy.Boosts['No Need to be Neat'].department = Molpy.Earned('Neat!');
if (Molpy.IsEnabled('Time Lord')) Molpy.Boosts['Temporal Rift'].department = 0;
}
Molpy.CheckLogicatRewards = function(automationLevel) {
if((!Molpy.Boosts['AC'].power) || (Molpy.Boosts['AC'].power < 60) || ((Molpy.Boosts['AC'].power < 300) && (Molpy.Boosts['AC'].power + 180) / 240 * Math.random() < 1)) {
Molpy.Boosts['Locked Crate'].logic = 2;
Molpy.Boosts['Crate Key'].logic = 4 * (Molpy.Boosts['Locked Crate'].unlocked || Molpy.Got('The Key Thing'));
Molpy.Boosts['Locked Vault'].logic = 0;
Molpy.Boosts['Vault Key'].logic = 0;
} else {
Molpy.Boosts['Locked Vault'].logic = 5;
Molpy.Boosts['Vault Key'].logic = 5;
Molpy.Boosts['Locked Crate'].logic = 0;
Molpy.Boosts['Crate Key'].logic = 0;
}
Molpy.Boosts['Redundant Raptor'].logic = 2 * (Molpy.Boosts['Panther Salve'].power > 500);
Molpy.Boosts['Catamaran'].logic = 4 * (Molpy.Boosts['Panther Salve'].power > 800);
Molpy.Boosts['LCB'].logic = 6 * (Molpy.Boosts['Panther Salve'].power > 1200);
Molpy.Boosts['Ninjasaw'].logic = 16 * (Molpy.Got('Phonesaw'));
Molpy.Boosts['Impervious Ninja'].logic = 2 * !Molpy.IsEnabled('Ninja Lockdown');
Molpy.Boosts['Flux Surge'].logic = 4 * (Molpy.Got('Flux Turbine') && isFinite(Molpy.Boosts['Castles'].power));
var finiteC = 1 * isFinite(Molpy.Boosts['Castles'].power);
var finiteP = 0;
if(Molpy.Got('Crystal Dragon'))
finiteP = 1;
else if(finiteC) {
for( var i in Molpy.SandTools) {
if(isFinite(Molpy.priceFactor * Molpy.SandTools[i].price)) {
finiteP = 1;
break;
}
}
if(!finiteP) {
for( var i in Molpy.CastleTools) {
if(isFinite(Molpy.priceFactor * Molpy.CastleTools[i].price)) {
finiteP = 1;
break;
}
}
}
}
Molpy.Boosts['TDE'].logic = finiteC * finiteP;
Molpy.Boosts['Temporal Rift'].logic = 3 * finiteC * !Molpy.IsEnabled('Time Lord');
Molpy.Boosts['Bucking the Trend'].logic = 10 * (Molpy.SandTools['Bucket'].amount >= 10000);
Molpy.Boosts['Crystal Well'].logic = 20 * (Molpy.SandTools['Bucket'].amount >= 20000);
Molpy.Boosts['Glass Spades'].logic = 30 * (Molpy.SandTools['Cuegan'].amount >= 10000);
Molpy.Boosts['Statuesque'].logic = 40 * (Molpy.SandTools['Cuegan'].amount >= 20000);
Molpy.Boosts['Flag in the Window'].logic = 50 * (Molpy.SandTools['Flag'].amount >= 10000);
Molpy.Boosts['Crystal Wind'].logic = 60 * (Molpy.SandTools['Flag'].amount >= 20000);
Molpy.Boosts['Crystal Peak'].logic = 70 * (Molpy.SandTools['Ladder'].amount >= 15000);
Molpy.Boosts['Cupholder'].logic = 80 * (Molpy.SandTools['Bag'].amount >= 12000);
Molpy.Boosts['Tiny Glasses'].logic = 90 * (Molpy.SandTools['LaPetite'].amount >= 8000);
Molpy.Boosts['Glass Saw'].logic = 150 * (Molpy.Boosts['TF'].loadedPermNP >= 4000);
Molpy.Boosts['Glass Ceiling 10'].logic = 80*Molpy.Earned('Ceiling Broken');
Molpy.Boosts['Glass Ceiling 11'].logic = 90*Molpy.Earned('Ceiling Broken');
Molpy.Boosts['Panther Rush'].logic = Molpy.Has('Logicat',Molpy.CalcRushCost(0, 1).Logicat) && !Molpy.Earned('Einstein Says No');
Molpy.Boosts['AC'].logic = 440 * (Molpy.Got('AA') && (isFinite(Molpy.CastleTools['NewPixBot'].amount)?
(Molpy.CastleTools['NewPixBot'].amount >= 7500 ? 50000 / Molpy.CastleTools['NewPixBot'].amount : 0):1));
Molpy.Boosts['Flipside'].logic = 220 * Molpy.Got('AA');
Molpy.Boosts['Bottle Battle'].logic = 150 * (Molpy.CastleTools['NewPixBot'].amount >= 10000);
Molpy.Boosts['Stained Glass Launcher'].logic = 160 * (Molpy.CastleTools['Trebuchet'].amount >= 4000);
Molpy.Boosts['Leggy'].logic = 180 * (Molpy.CastleTools['Scaffold'].amount >= 5000);
Molpy.Boosts['Clear Wash'].logic = 200 * (Molpy.CastleTools['Wave'].amount >= 5000);
Molpy.Boosts['Crystal Streams'].logic = 220 * (Molpy.CastleTools['River'].amount >= 6000);
Molpy.Boosts['Super Visor'].logic = 240 * (Molpy.CastleTools['Beanie Builder'].amount >= 6000);
Molpy.Boosts['Crystal Helm'].logic = 300 * (Molpy.CastleTools['Beanie Builder'].amount >= 12000);
Molpy.Boosts['FiM'].logic = 64 * (Molpy.SandTools['LaPetite'].amount + Molpy.SandTools['Cuegan'].amount > 6.4e10);
Molpy.Boosts['MHP'].department = finiteC || ((Molpy.Got('Goats') || Molpy.Boosts['MHP'].department) && !automationLevel);
Molpy.Boosts['Maps'].logic = 3000 * (Molpy.EnoughMonumgForMaps());
Molpy.Boosts['Mario'].logic = Molpy.Level('Logicat') * 2 + 10000;
Molpy.Boosts['TS'].logic = Molpy.Level('Vacuum') * (Molpy.Level('Vacuum') >= 8000);
Molpy.Boosts['Aleph One'].logic = 111111111;
Molpy.Boosts['Zoofeeder'].logic = Molpy.Level('Panther Rush') > 9 && Molpy.Got('ZK');
}
Molpy.mapMonumg = 300;
Molpy.CheckASHF = function() {
Molpy.Boosts['ASHF'].department = 0;
if(Molpy.BoostsInShop.length) {
Molpy.Boosts['ASHF'].department = 1;
return;
}
if(!isFinite(Molpy.Boosts['Castles'].power)) return;
for( var i in Molpy.SandTools) {
if(isFinite(Molpy.priceFactor * Molpy.SandTools[i].price)) {
Molpy.Boosts['ASHF'].department = 1;
return;
}
}
for( var i in Molpy.CastleTools) {
if(isFinite(Molpy.priceFactor * Molpy.CastleTools[i].price)) {
Molpy.Boosts['ASHF'].department = 1;
return;
}
}
}
Molpy.CheckClickAchievements = function() {
var c = Molpy.beachClicks;
Molpy.EarnBadge('Amazon Patent');
if(c >= 2) {
Molpy.EarnBadge('Oops');
}
if(c >= 10) {
Molpy.EarnBadge('Just Starting');
}
if(c >= 100) {
Molpy.EarnBadge('Busy Clicking');
Molpy.UnlockBoost('Helpful Hands');
}
if(c >= 1000) {
Molpy.EarnBadge('Click Storm');
Molpy.UnlockBoost('Raise the Flag');
}
if(c >= 3333) {
Molpy.UnlockBoost('True Colours');
}
c = Molpy.Boosts['Sand'].manualDug;
if(c >= 100000) {
Molpy.EarnBadge('Getting Sick of Clicking');
}
if(c >= 5000000) {
Molpy.EarnBadge('Why am I still clicking?');
}
if(c >= 100000000) {
Molpy.EarnBadge('Click Master');
}
if(c >= 50000000000) {
Molpy.EarnBadge('Recursion');
Molpy.EarnBadge('Recursion ');
Molpy.UnlockBoost('Fractal Sandcastles');
}
}
Molpy.MontyMethod = 'JTI1N0J2YXIlMjUyMHIlMjUzRG1lLnByaXplJTI1M0QlMjUzRG1lLmRvb3IlMjUzRjMlMjUzQTUlMjUzQmlmJTI4TWF0aC5yYW5kb20lMjglMjkqJTI4TW9scHkuTGV2ZWwlMjglMjUyMkdvYXRzJTI1MjIlMjklMjUyNXIlMjUyRiUyOHItMiUyOSUyOSUyNTNDLjI1JTI5cmV0dXJuJTI1M0J2YXIlMjUyMGklMjUzRG1lLmRvb3IlMjUzQndoaWxlJTI4aSUyNTNEJTI1M0RtZS5kb29yJTI1N0MlMjU3Q2klMjUzRCUyNTNEbWUucHJpemUlMjlpJTI1M0RNb2xweS5HZXREb29yJTI4JTI5JTI1M0JtZS5nb2F0JTI1M0RpJTI1N0Q=';
/**
*
* Base64 encode / decode http://www.webtoolkit.info/ via stackoverflow :D
*
*/
var AllYourBase = {
// private property
_keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
// public method for encoding
SetUpUsTheBomb: function(input) {
var output = "";
var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
var i = 0;
input = AllYourBase._utf8_encode(input);
while(i < input.length) {
chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++);
enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;
if(isNaN(chr2)) {
enc3 = enc4 = 64;
} else if(isNaN(chr3)) {
enc4 = 64;
}
output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3)
+ this._keyStr.charAt(enc4);
}
return output;
},
// public method for decoding
BelongToUs: function(input) {
var output = "";
var chr1, chr2, chr3;
var enc1, enc2, enc3, enc4;
var i = 0;
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
while(i < input.length) {
enc1 = this._keyStr.indexOf(input.charAt(i++));
enc2 = this._keyStr.indexOf(input.charAt(i++));
enc3 = this._keyStr.indexOf(input.charAt(i++));
enc4 = this._keyStr.indexOf(input.charAt(i++));
chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;
output = output + String.fromCharCode(chr1);
if(enc3 != 64) {
output = output + String.fromCharCode(chr2);
}
if(enc4 != 64) {
output = output + String.fromCharCode(chr3);
}