-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.php
1082 lines (1012 loc) · 42.2 KB
/
lib.php
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
<?php //Mainly, our pokemon names. But also, functions to deal with pokemon. Since we MUST have this loaded when dealing with pokemon, why not put them here?
$pokemon[0] = "MISSINGNO.";
$pokemon[1] = "Bulbasaur";
$pokemon[2] = "Ivysaur";
$pokemon[3] = "Venusaur";
$pokemon[4] = "Charmander";
$pokemon[5] = "Charmeleon";
$pokemon[6] = "Charizard";
$pokemon[7] = "Squirtle";
$pokemon[8] = "Wartortle";
$pokemon[9] = "Blastoise";
$pokemon[10] = "Caterpie";
$pokemon[11] = "Metapod";
$pokemon[12] = "Butterfree";
$pokemon[13] = "Weedle";
$pokemon[14] = "Kakuna";
$pokemon[15] = "Beedrill";
$pokemon[16] = "Pidgey";
$pokemon[17] = "Pidgeotto";
$pokemon[18] = "Pidgeot";
$pokemon[19] = "Rattata";
$pokemon[20] = "Raticate";
$pokemon[21] = "Spearow";
$pokemon[22] = "Fearow";
$pokemon[23] = "Ekans";
$pokemon[24] = "Arbok";
$pokemon[25] = "Pikachu";
$pokemon[26] = "Raichu";
$pokemon[27] = "Sandshrew";
$pokemon[28] = "Sandslash";
$pokemon[29] = "Nidoran F";
$pokemon[30] = "Nidorina";
$pokemon[31] = "Nidoqueen";
$pokemon[32] = "Nidoran M";
$pokemon[33] = "Nidorino";
$pokemon[34] = "Nidoking";
$pokemon[35] = "Clefairy";
$pokemon[36] = "Clefable";
$pokemon[37] = "Vulpix";
$pokemon[38] = "Ninetales";
$pokemon[39] = "Jigglypuff";
$pokemon[40] = "Wigglytuff";
$pokemon[41] = "Zubat";
$pokemon[42] = "Golbat";
$pokemon[43] = "Oddish";
$pokemon[44] = "Gloom";
$pokemon[45] = "Vileplume";
$pokemon[46] = "Paras";
$pokemon[47] = "Parasect";
$pokemon[48] = "Venonat";
$pokemon[49] = "Venomoth";
$pokemon[50] = "Diglett";
$pokemon[51] = "Dugtrio";
$pokemon[52] = "Meowth";
$pokemon[53] = "Persian";
$pokemon[54] = "Psyduck";
$pokemon[55] = "Golduck";
$pokemon[56] = "Mankey";
$pokemon[57] = "Primeape";
$pokemon[58] = "Growlithe";
$pokemon[59] = "Arcanine";
$pokemon[60] = "Poliwag";
$pokemon[61] = "Poliwhirl";
$pokemon[62] = "Poliwrath";
$pokemon[63] = "Abra";
$pokemon[64] = "Kadabra";
$pokemon[65] = "Alakazam";
$pokemon[66] = "Machop";
$pokemon[67] = "Machoke";
$pokemon[68] = "Machamp";
$pokemon[69] = "Bellsprout";
$pokemon[70] = "Weepinbell";
$pokemon[71] = "Victreebel";
$pokemon[72] = "Tentacool";
$pokemon[73] = "Tentacruel";
$pokemon[74] = "Geodude";
$pokemon[75] = "Graveler";
$pokemon[76] = "Golem";
$pokemon[77] = "Ponyta";
$pokemon[78] = "Rapidash";
$pokemon[79] = "Slowpoke";
$pokemon[80] = "Slowbro";
$pokemon[81] = "Magnemite";
$pokemon[82] = "Magneton";
$pokemon[83] = "Farfetch'd";
$pokemon[84] = "Doduo";
$pokemon[85] = "Dodrio";
$pokemon[86] = "Seel";
$pokemon[87] = "Dewgong";
$pokemon[88] = "Grimer";
$pokemon[89] = "Muk";
$pokemon[90] = "Shellder";
$pokemon[91] = "Cloyster";
$pokemon[92] = "Gastly";
$pokemon[93] = "Haunter";
$pokemon[94] = "Gengar";
$pokemon[95] = "Onix";
$pokemon[96] = "Drowzee";
$pokemon[97] = "Hypno";
$pokemon[98] = "Krabby";
$pokemon[99] = "Kingler";
$pokemon[100] = "Voltorb";
$pokemon[101] = "Electrode";
$pokemon[102] = "Exeggcute";
$pokemon[103] = "Exeggutor";
$pokemon[104] = "Cubone";
$pokemon[105] = "Marowak";
$pokemon[106] = "Hitmonlee";
$pokemon[107] = "Hitmonchan";
$pokemon[108] = "Lickitung";
$pokemon[109] = "Koffing";
$pokemon[110] = "Weezing";
$pokemon[111] = "Rhyhorn";
$pokemon[112] = "Rhydon";
$pokemon[113] = "Chansey";
$pokemon[114] = "Tangela";
$pokemon[115] = "Kangaskhan";
$pokemon[116] = "Horsea";
$pokemon[117] = "Seadra";
$pokemon[118] = "Goldeen";
$pokemon[119] = "Seaking";
$pokemon[120] = "Staryu";
$pokemon[121] = "Starmie";
$pokemon[122] = "Mr. Mime";
$pokemon[123] = "Scyther";
$pokemon[124] = "Jynx";
$pokemon[125] = "Electabuzz";
$pokemon[126] = "Magmar";
$pokemon[127] = "Pinsir";
$pokemon[128] = "Tauros";
$pokemon[129] = "Magikarp";
$pokemon[130] = "Gyarados";
$pokemon[131] = "Lapras";
$pokemon[132] = "Ditto";
$pokemon[133] = "Eevee";
$pokemon[134] = "Vaporeon";
$pokemon[135] = "Jolteon";
$pokemon[136] = "Flareon";
$pokemon[137] = "Porygon";
$pokemon[138] = "Omanyte";
$pokemon[139] = "Omastar";
$pokemon[140] = "Kabuto";
$pokemon[141] = "Kabutops";
$pokemon[142] = "Aerodactyl";
$pokemon[143] = "Snorlax";
$pokemon[144] = "Articuno";
$pokemon[145] = "Zapdos";
$pokemon[146] = "Moltres";
$pokemon[147] = "Dratini";
$pokemon[148] = "Dragonair";
$pokemon[149] = "Dragonite";
$pokemon[150] = "Mewtwo";
$pokemon[151] = "Mew";
$pokemon[152] = "Chikorita";
$pokemon[153] = "Bayleef";
$pokemon[154] = "Meganium";
$pokemon[155] = "Cyndaquil";
$pokemon[156] = "Quilava";
$pokemon[157] = "Typhlosion";
$pokemon[158] = "Totodile";
$pokemon[159] = "Croconaw";
$pokemon[160] = "Feraligatr";
$pokemon[161] = "Sentret";
$pokemon[162] = "Furret";
$pokemon[163] = "Hoothoot";
$pokemon[164] = "Noctowl";
$pokemon[165] = "Ledyba";
$pokemon[166] = "Ledian";
$pokemon[167] = "Spinarak";
$pokemon[168] = "Ariados";
$pokemon[169] = "Crobat";
$pokemon[170] = "Chinchou";
$pokemon[171] = "Lanturn";
$pokemon[172] = "Pichu";
$pokemon[173] = "Cleffa";
$pokemon[174] = "Igglybuff";
$pokemon[175] = "Togepi";
$pokemon[176] = "Togetic";
$pokemon[177] = "Natu";
$pokemon[178] = "Xatu";
$pokemon[179] = "Mareep";
$pokemon[180] = "Flaaffy";
$pokemon[181] = "Ampharos";
$pokemon[182] = "Bellossom";
$pokemon[183] = "Marill";
$pokemon[184] = "Azumarill";
$pokemon[185] = "Sudowoodo";
$pokemon[186] = "Politoed";
$pokemon[187] = "Hoppip";
$pokemon[188] = "Skiploom";
$pokemon[189] = "Jumpluff";
$pokemon[190] = "Aipom";
$pokemon[191] = "Sunkern";
$pokemon[192] = "Sunflora";
$pokemon[193] = "Yanma";
$pokemon[194] = "Wooper";
$pokemon[195] = "Quagsire";
$pokemon[196] = "Espeon";
$pokemon[197] = "Umbreon";
$pokemon[198] = "Murkrow";
$pokemon[199] = "Slowking";
$pokemon[200] = "Misdreavus";
$pokemon[201] = "Unown";
$pokemon[202] = "Wobbuffet";
$pokemon[203] = "Girafarig";
$pokemon[204] = "Pineco";
$pokemon[205] = "Forretress";
$pokemon[206] = "Dunsparce";
$pokemon[207] = "Gligar";
$pokemon[208] = "Steelix";
$pokemon[209] = "Snubbull";
$pokemon[210] = "Granbull";
$pokemon[211] = "Qwillfish";
$pokemon[212] = "Scizor";
$pokemon[213] = "Shuckle";
$pokemon[214] = "Heracross";
$pokemon[215] = "Sneasel";
$pokemon[216] = "Teddiursa";
$pokemon[217] = "Ursaring";
$pokemon[218] = "Slugma";
$pokemon[219] = "Magcargo";
$pokemon[220] = "Swinub";
$pokemon[221] = "Piloswine";
$pokemon[222] = "Corsola";
$pokemon[223] = "Remoraid";
$pokemon[224] = "Octillery";
$pokemon[225] = "Delibird";
$pokemon[226] = "Mantine";
$pokemon[227] = "Skarmory";
$pokemon[228] = "Houndour";
$pokemon[229] = "Houndoom";
$pokemon[230] = "Kingdra";
$pokemon[231] = "Phanpy";
$pokemon[232] = "Donphan";
$pokemon[233] = "Porygon2";
$pokemon[234] = "Stantler";
$pokemon[235] = "Smeargle";
$pokemon[236] = "Tyrogue";
$pokemon[237] = "Hitmontop";
$pokemon[238] = "Smoochum";
$pokemon[239] = "Elekid";
$pokemon[240] = "Magby";
$pokemon[241] = "Miltank";
$pokemon[242] = "Blissey";
$pokemon[243] = "Raikou";
$pokemon[244] = "Entei";
$pokemon[245] = "Suicune";
$pokemon[246] = "Larvitar";
$pokemon[247] = "Pupitar";
$pokemon[248] = "Tyranitar";
$pokemon[249] = "Lugia";
$pokemon[250] = "Ho-oh";
$pokemon[251] = "Celebi";
$pokemon[252] = "Treecko";
$pokemon[253] = "Grovyle";
$pokemon[254] = "Sceptile";
$pokemon[255] = "Torchic";
$pokemon[256] = "Combusken";
$pokemon[257] = "Blaziken";
$pokemon[258] = "Mudkip";
$pokemon[259] = "Marshtomp";
$pokemon[260] = "Swampert";
$pokemon[261] = "Poochyena";
$pokemon[262] = "Mightyena";
$pokemon[263] = "Zigzagoon";
$pokemon[264] = "Linoone";
$pokemon[265] = "Wurmple";
$pokemon[266] = "Silcoon";
$pokemon[267] = "Beautifly";
$pokemon[268] = "Cascoon";
$pokemon[269] = "Dustox";
$pokemon[270] = "Lotad";
$pokemon[271] = "Lombre";
$pokemon[272] = "Ludicolo";
$pokemon[273] = "Seedot";
$pokemon[274] = "Nuzleaf";
$pokemon[275] = "Shiftry";
$pokemon[276] = "Taillow";
$pokemon[277] = "Swellow";
$pokemon[278] = "Wingull";
$pokemon[279] = "Pelipper";
$pokemon[280] = "Ralts";
$pokemon[281] = "Kirlia";
$pokemon[282] = "Gardevoir";
$pokemon[283] = "Surskit";
$pokemon[284] = "Masquerain";
$pokemon[285] = "Shroomish";
$pokemon[286] = "Breloom";
$pokemon[287] = "Slakoth";
$pokemon[288] = "Vigoroth";
$pokemon[289] = "Slaking";
$pokemon[290] = "Nincada";
$pokemon[291] = "Ninjask";
$pokemon[292] = "Shedinja";
$pokemon[293] = "Whismur";
$pokemon[294] = "Loudred";
$pokemon[295] = "Exploud";
$pokemon[296] = "Makuhita";
$pokemon[297] = "Hariyama";
$pokemon[298] = "Azurill";
$pokemon[299] = "Nosepass";
$pokemon[300] = "Skitty";
$pokemon[301] = "Delcatty";
$pokemon[302] = "Sableye";
$pokemon[303] = "Mawile";
$pokemon[304] = "Aron";
$pokemon[305] = "Lairon";
$pokemon[306] = "Aggron";
$pokemon[307] = "Meditite";
$pokemon[308] = "Medicham";
$pokemon[309] = "Electrike";
$pokemon[310] = "Manectric";
$pokemon[311] = "Plusle";
$pokemon[312] = "Minun";
$pokemon[313] = "Volbeat";
$pokemon[314] = "Illumise";
$pokemon[315] = "Roselia";
$pokemon[316] = "Gulpin";
$pokemon[317] = "Swalot";
$pokemon[318] = "Carvanha";
$pokemon[319] = "Sharpedo";
$pokemon[320] = "Wailmer";
$pokemon[321] = "Wailord";
$pokemon[322] = "Numel";
$pokemon[323] = "Camerupt";
$pokemon[324] = "Torkoal";
$pokemon[325] = "Spoink";
$pokemon[326] = "Grumpig";
$pokemon[327] = "Spinda";
$pokemon[328] = "Trapinch";
$pokemon[329] = "Vibrava";
$pokemon[330] = "Flygon";
$pokemon[331] = "Cacnea";
$pokemon[332] = "Cacturne";
$pokemon[333] = "Swablu";
$pokemon[334] = "Altaria";
$pokemon[335] = "Zangoose";
$pokemon[336] = "Seviper";
$pokemon[337] = "Lunatone";
$pokemon[338] = "Solrock";
$pokemon[339] = "Barboach";
$pokemon[340] = "Whiscash";
$pokemon[341] = "Corphish";
$pokemon[342] = "Crawdaunt";
$pokemon[343] = "Baltoy";
$pokemon[344] = "Claydol";
$pokemon[345] = "Lileep";
$pokemon[346] = "Cradily";
$pokemon[347] = "Anorith";
$pokemon[348] = "Armaldo";
$pokemon[349] = "Feebas";
$pokemon[350] = "Milotic";
$pokemon[351] = "Castform";
$pokemon[352] = "Kecleon";
$pokemon[353] = "Shuppet";
$pokemon[354] = "Banette";
$pokemon[355] = "Duskull";
$pokemon[356] = "Dusclops";
$pokemon[357] = "Tropius";
$pokemon[358] = "Chimecho";
$pokemon[359] = "Absol";
$pokemon[360] = "Wynaut";
$pokemon[361] = "Snorunt";
$pokemon[362] = "Glalie";
$pokemon[363] = "Spheal";
$pokemon[364] = "Sealeo";
$pokemon[365] = "Walrein";
$pokemon[366] = "Clamperl";
$pokemon[367] = "Huntail";
$pokemon[368] = "Gorebyss";
$pokemon[369] = "Relicanth";
$pokemon[370] = "Luvdisc";
$pokemon[371] = "Bagon";
$pokemon[372] = "Shelgon";
$pokemon[373] = "Salamence";
$pokemon[374] = "Beldum";
$pokemon[375] = "Metang";
$pokemon[376] = "Metagross";
$pokemon[377] = "Regirock";
$pokemon[378] = "Regice";
$pokemon[379] = "Registeel";
$pokemon[380] = "Latias";
$pokemon[381] = "Latios";
$pokemon[382] = "Kyogre";
$pokemon[383] = "Groudon";
$pokemon[384] = "Rayquaza";
$pokemon[385] = "Jirachi";
$pokemon[386] = "Deoxys";
$pokemon[387] = "Turtwig";
$pokemon[388] = "Grotle";
$pokemon[389] = "Torterra";
$pokemon[390] = "Chimchar";
$pokemon[391] = "Monferno";
$pokemon[392] = "Infernape";
$pokemon[393] = "Piplup";
$pokemon[394] = "Prinplup";
$pokemon[395] = "Empoleon";
$pokemon[396] = "Starly";
$pokemon[397] = "Staravia";
$pokemon[398] = "Staraptor";
$pokemon[399] = "Bidoof";
$pokemon[400] = "Bibarel";
$pokemon[401] = "Kricketot";
$pokemon[402] = "Kricketune";
$pokemon[403] = "Shinx";
$pokemon[404] = "Luxio";
$pokemon[405] = "Luxray";
$pokemon[406] = "Budew";
$pokemon[407] = "Roserade";
$pokemon[408] = "Cranidos";
$pokemon[409] = "Rampardos";
$pokemon[410] = "Shieldon";
$pokemon[411] = "Bastiodon";
$pokemon[412] = "Burmy";
$pokemon[413] = "Wormadam";
$pokemon[414] = "Mothim";
$pokemon[415] = "Combee";
$pokemon[416] = "Vespiquen";
$pokemon[417] = "Pachirisu";
$pokemon[418] = "Buizel";
$pokemon[419] = "Floatzel";
$pokemon[420] = "Cherubi";
$pokemon[421] = "Cherrim";
$pokemon[422] = "Shellos";
$pokemon[423] = "Gastrodon";
$pokemon[424] = "Ambipom";
$pokemon[425] = "Drifloon";
$pokemon[426] = "Drifblim";
$pokemon[427] = "Buneary";
$pokemon[428] = "Lopunny";
$pokemon[429] = "Mismagius";
$pokemon[430] = "Honchkrow";
$pokemon[431] = "Glameow";
$pokemon[432] = "Purugly";
$pokemon[433] = "Chingling";
$pokemon[434] = "Stunky";
$pokemon[435] = "Skuntank";
$pokemon[436] = "Bronzor";
$pokemon[437] = "Bronzong";
$pokemon[438] = "Bonsly";
$pokemon[439] = "Mime Jr.";
$pokemon[440] = "Happiny";
$pokemon[441] = "Chatot";
$pokemon[442] = "Spiritomb";
$pokemon[443] = "Gible";
$pokemon[444] = "Gabite";
$pokemon[445] = "Garchomp";
$pokemon[446] = "Munchlax";
$pokemon[447] = "Riolu";
$pokemon[448] = "Lucario";
$pokemon[449] = "Hippopotas";
$pokemon[450] = "Hippowdon";
$pokemon[451] = "Skorupi";
$pokemon[452] = "Drapion";
$pokemon[453] = "Croagunk";
$pokemon[454] = "Toxicroak";
$pokemon[455] = "Carnivine";
$pokemon[456] = "Finneon";
$pokemon[457] = "Lumineon";
$pokemon[458] = "Mantyke";
$pokemon[459] = "Snover";
$pokemon[460] = "Abomasnow";
$pokemon[461] = "Weavile";
$pokemon[462] = "Magnezone";
$pokemon[463] = "Lickilicky";
$pokemon[464] = "Rhyperior";
$pokemon[465] = "Tangrowth";
$pokemon[466] = "Electivire";
$pokemon[467] = "Magmortar";
$pokemon[468] = "Togekiss";
$pokemon[469] = "Yanmega";
$pokemon[470] = "Leafeon";
$pokemon[471] = "Glaceon";
$pokemon[472] = "Gliscor";
$pokemon[473] = "Mamoswine";
$pokemon[474] = "Porygon-Z";
$pokemon[475] = "Gallade";
$pokemon[476] = "Probopass";
$pokemon[477] = "Dusknoir";
$pokemon[478] = "Froslass";
$pokemon[479] = "Rotom";
$pokemon[480] = "Uxie";
$pokemon[481] = "Mesprit";
$pokemon[482] = "Azelf";
$pokemon[483] = "Dialga";
$pokemon[484] = "Palkia";
$pokemon[485] = "Heatran";
$pokemon[486] = "Regigigas";
$pokemon[487] = "Giratina";
$pokemon[488] = "Cresselia";
$pokemon[489] = "Phione";
$pokemon[490] = "Manaphy";
$pokemon[491] = "Darkrai";
$pokemon[492] = "Shaymin";
$pokemon[493] = "Arceus";
$pokemon[494] = "Victini";
$pokemon[495] = "Snivy";
$pokemon[496] = "Servine";
$pokemon[497] = "Serperior";
$pokemon[498] = "Tepig";
$pokemon[499] = "Pignite";
$pokemon[500] = "Emboar";
$pokemon[501] = "Oshawott";
$pokemon[502] = "Dewott";
$pokemon[503] = "Samurott";
$pokemon[504] = "Patrat";
$pokemon[505] = "Watchog";
$pokemon[506] = "Lillipup";
$pokemon[507] = "Herdier";
$pokemon[508] = "Stoutland";
$pokemon[509] = "Purrloin";
$pokemon[510] = "Liepard";
$pokemon[511] = "Pansage";
$pokemon[512] = "Simisage";
$pokemon[513] = "Pansear";
$pokemon[514] = "Simisear";
$pokemon[515] = "Panpour";
$pokemon[516] = "Simipour";
$pokemon[517] = "Munna";
$pokemon[518] = "Musharna";
$pokemon[519] = "Pidove";
$pokemon[520] = "Tranquill";
$pokemon[521] = "Unfezant";
$pokemon[522] = "Blitzle";
$pokemon[523] = "Zebstrika";
$pokemon[524] = "Roggenrola";
$pokemon[525] = "Boldore";
$pokemon[526] = "Gigalith";
$pokemon[527] = "Woobat";
$pokemon[528] = "Swoobat";
$pokemon[529] = "Drilbur";
$pokemon[530] = "Excadrill";
$pokemon[531] = "Audino";
$pokemon[532] = "Timburr";
$pokemon[533] = "Gurdurr";
$pokemon[534] = "Conkeldurr";
$pokemon[535] = "Tympole";
$pokemon[536] = "Palpitoad";
$pokemon[537] = "Seismitoad";
$pokemon[538] = "Throh";
$pokemon[539] = "Sawk";
$pokemon[540] = "Sewaddle";
$pokemon[541] = "Swadloon";
$pokemon[542] = "Leavanny";
$pokemon[543] = "Venipede";
$pokemon[544] = "Whirlipede";
$pokemon[545] = "Scolipede";
$pokemon[546] = "Cottonee";
$pokemon[547] = "Whimsicott";
$pokemon[548] = "Petilil";
$pokemon[549] = "Lilligant";
$pokemon[550] = "Basculin";
$pokemon[551] = "Sandile";
$pokemon[552] = "Krokorok";
$pokemon[553] = "Krookodile";
$pokemon[554] = "Darumaka";
$pokemon[555] = "Darmanitan";
$pokemon[556] = "Maractus";
$pokemon[557] = "Dwebble";
$pokemon[558] = "Crustle";
$pokemon[559] = "Scraggy";
$pokemon[560] = "Scrafty";
$pokemon[561] = "Sigilyph";
$pokemon[562] = "Yamask";
$pokemon[563] = "Cofagrigus";
$pokemon[564] = "Tirtouga";
$pokemon[565] = "Carracosta";
$pokemon[566] = "Archen";
$pokemon[567] = "Archeops";
$pokemon[568] = "Trubbish";
$pokemon[569] = "Garbodor";
$pokemon[570] = "Zorua";
$pokemon[571] = "Zoroark";
$pokemon[572] = "Minccino";
$pokemon[573] = "Cinccino";
$pokemon[574] = "Gothita";
$pokemon[575] = "Gothorita";
$pokemon[576] = "Gothitelle";
$pokemon[577] = "Solosis";
$pokemon[578] = "Duosion";
$pokemon[579] = "Reuniclus";
$pokemon[580] = "Ducklett";
$pokemon[581] = "Swanna";
$pokemon[582] = "Vanillite";
$pokemon[583] = "Vanillish";
$pokemon[584] = "Vanilluxe";
$pokemon[585] = "Deerling";
$pokemon[586] = "Sawsbuck";
$pokemon[587] = "Emolga";
$pokemon[588] = "Karrablast";
$pokemon[589] = "Escavalier";
$pokemon[590] = "Foongus";
$pokemon[591] = "Amoonguss";
$pokemon[592] = "Frillish";
$pokemon[593] = "Jellicent";
$pokemon[594] = "Alomomola";
$pokemon[595] = "Joltik";
$pokemon[596] = "Galvantula";
$pokemon[597] = "Ferroseed";
$pokemon[598] = "Ferrothorn";
$pokemon[599] = "Klink";
$pokemon[600] = "Klang";
$pokemon[601] = "Klinklang";
$pokemon[602] = "Tynamo";
$pokemon[603] = "Eelektrik";
$pokemon[604] = "Eelektross";
$pokemon[605] = "Elgyem";
$pokemon[606] = "Beheeyem";
$pokemon[607] = "Litwick";
$pokemon[608] = "Lampent";
$pokemon[609] = "Chandelure";
$pokemon[610] = "Axew";
$pokemon[611] = "Fraxure";
$pokemon[612] = "Haxorus";
$pokemon[613] = "Cubchoo";
$pokemon[614] = "Beartic";
$pokemon[615] = "Cryogonal";
$pokemon[616] = "Shelmet";
$pokemon[617] = "Accelgor";
$pokemon[618] = "Stunfisk";
$pokemon[619] = "Mienfoo";
$pokemon[620] = "Mienshao";
$pokemon[621] = "Druddigon";
$pokemon[622] = "Golett";
$pokemon[623] = "Golurk";
$pokemon[624] = "Pawniard";
$pokemon[625] = "Bisharp";
$pokemon[626] = "Bouffalant";
$pokemon[627] = "Rufflet";
$pokemon[628] = "Braviary";
$pokemon[629] = "Vullaby";
$pokemon[630] = "Mandibuzz";
$pokemon[631] = "Heatmore";
$pokemon[632] = "Durant";
$pokemon[633] = "Deino";
$pokemon[634] = "Zweilous";
$pokemon[635] = "Hydreigon";
$pokemon[636] = "Larvesta";
$pokemon[637] = "Volcarona";
$pokemon[638] = "Cobalion";
$pokemon[639] = "Terrakion";
$pokemon[640] = "Virizion";
$pokemon[641] = "Tornadus";
$pokemon[642] = "Thundurus";
$pokemon[643] = "Reshiram";
$pokemon[644] = "Zekrom";
$pokemon[645] = "Landorus";
$pokemon[646] = "Kyurem";
$pokemon[647] = "Keldeo";
$pokemon[648] = "Meloetta";
$pokemon[649] = "Genesect";
$pokemon[650] = "Chespin";
$pokemon[651] = "Quilladin";
$pokemon[652] = "Chesnaught";
$pokemon[653] = "Fennekin";
$pokemon[654] = "Braixen";
$pokemon[655] = "Delphox";
$pokemon[656] = "Froakie";
$pokemon[657] = "Frogadier";
$pokemon[658] = "Greninja";
$pokemon[659] = "Bunnelby";
$pokemon[660] = "Diggersby";
$pokemon[661] = "Fletchling";
$pokemon[662] = "Fletchinder";
$pokemon[663] = "Talonflame";
$pokemon[664] = "Scatterbug";
$pokemon[665] = "Spewpa";
$pokemon[666] = "Vivillon";
$pokemon[667] = "Litleo";
$pokemon[668] = "Pyroar";
$pokemon[669] = "Flabébé";
$pokemon[670] = "Floette";
$pokemon[671] = "Florges";
$pokemon[672] = "Skiddo";
$pokemon[673] = "Gogoat";
$pokemon[674] = "Pancham";
$pokemon[675] = "Pangoro";
$pokemon[676] = "Furfrou";
$pokemon[677] = "Espurr";
$pokemon[678] = "Meowstic";
$pokemon[679] = "Honedge";
$pokemon[680] = "Doublade";
$pokemon[681] = "Aegislash";
$pokemon[682] = "Spritzee";
$pokemon[683] = "Aromatisse";
$pokemon[684] = "Swirlix";
$pokemon[685] = "Slurpuff";
$pokemon[686] = "Inkay";
$pokemon[687] = "Malamar";
$pokemon[688] = "Binacle";
$pokemon[689] = "Barbaracle";
$pokemon[690] = "Skrelp";
$pokemon[691] = "Dragalge";
$pokemon[692] = "Clauncher";
$pokemon[693] = "Clawitzer";
$pokemon[694] = "Helioptile";
$pokemon[695] = "Heliolisk";
$pokemon[696] = "Tyrunt";
$pokemon[697] = "Tyrantrum";
$pokemon[698] = "Amaura";
$pokemon[699] = "Aurorus";
$pokemon[700] = "Sylveon";
$pokemon[701] = "Hawlucha";
$pokemon[702] = "Dedenne";
$pokemon[703] = "Carbink";
$pokemon[704] = "Goomy";
$pokemon[705] = "Sliggoo";
$pokemon[706] = "Goodra";
$pokemon[707] = "Klefki";
$pokemon[708] = "Phantump";
$pokemon[709] = "Trevenant";
$pokemon[710] = "Pumpkaboo";
$pokemon[711] = "Gourgeist";
$pokemon[712] = "Bergmite";
$pokemon[713] = "Avalugg";
$pokemon[714] = "Noibat";
$pokemon[715] = "Noivern";
$pokemon[716] = "Xerneas";
$pokemon[717] = "Yveltal";
$pokemon[718] = "Zygarde";
$pokemon[719] = "Diancie";
$type[1] = 'Bug';
$type[2] = 'Dark';
$type[3] = 'Dragon';
$type[4] = 'Electric';
$type[5] = 'Fairy';
$type[6] = 'Fighting';
$type[7] = 'Fire';
$type[8] = 'Flying';
$type[9] = 'Ghost';
$type[10] = 'Grass';
$type[11] = 'Ground';
$type[12] = 'Ice';
$type[13] = 'Normal';
$type[14] = 'Poison';
$type[15] = 'Psychic';
$type[16] = 'Rock';
$type[17] = 'Steel';
$type[18] = 'Water';
function weighted_random_simple($values, $weights){
$count = count($values);
$i = 0;
$n = 0;
$num = mt_rand(0, array_sum($weights));
while($i < $count){
$n += $weights[$i];
if($n >= $num){
break;
}
$i++;
}
return array('name' => $values[$i], 'id' => $i);
}
function is_shiny($v) { //Simple true/false.
$shinytest = floor($v);
if ($shinytest != $v) return true;
else return false;
}
function badge_strip($id, $userdata, $output_method = "echo", $skip_id_check = false) { //Third iteration of badgestrip. Takes a user ID and optional $userdata array. Queries $userdata if neccessary. Echoes the results by default, though can return the results as an array instead.
global $baseurl, $pokemon, $p_type, $type;
//First thing's first. Has a $userdata been suuplied?
if (!empty($userdata)) {
//In case $userdata is supplied raw from PDO, jump up the keychain first.
if (!array_key_exists('id', $userdata)) {
$userdata = $userdata[0];
}
//Good, but does the $userdata match the ID we're displaying for?
if (!$skip_id_check) {
if ($userdata['id'] != $id || !isset($userdata['id'])) {
$userdata = userdata($id);
$userdata = $userdata[0];
echo '<!-- WARN ROPH: userdata regenerated -->';
}
}
} else {
$userdata = userdata($id);
$userdata = $userdata[0];
}
//From hereon we know we have the right information. Let's start building our badge array.
//First, badges based on the pokemon you have caught. For this, we hit your pokedex. We already know there are no shinies in here.
if (!empty($userdata['dex'])) {
$dexdata = explode(',', $userdata['dex']);
if (count($dexdata) >= 700) $badges[] = array('c700', 'Caught 700 different pokemon! - Professor Oak would be proud!');
elseif (count($dexdata) >= 500) $badges[] = array('c500', 'Caught 500 different pokemon! - Master Trainer!');
elseif (count($dexdata) >= 350) $badges[] = array('c350', 'Caught 350 different pokemon! - Renowned Trainer');
elseif (count($dexdata) >= 250) $badges[] = array('c250', 'Caught 250 different pokemon! - Prolific Trainer');
elseif (count($dexdata) >= 200) $badges[] = array('c200', 'Caught 200 different pokemon - Experienced Trainer');
elseif (count($dexdata) >= 150) $badges[] = array('c150', 'Caught 150 different pokemon - A whole generation\'s worth!');
elseif (count($dexdata) >= 100) $badges[] = array('c100', 'Caught 100 different pokemon - Well done!');
elseif (count($dexdata) >= 50) $badges[] = array('c50', 'Caught 50 different pokemon - Good! Keep going!');
elseif (count($dexdata) >= 25) $badges[] = array('c25', 'Caught 25 different pokemon - Getting the hang of things');
elseif (count($dexdata) >= 10) $badges[] = array('c10', 'Caught 10 different pokemon - Pokedex is still quite empty');
elseif (count($dexdata) >= 5) $badges[] = array('c5', 'Caught 5 different pokemon - Need to catch more!');
}
//We also want to give a badge for overall catches. Catching 3,000 Meowths is still a commendable feat.
if ($userdata['catches'] >= 10001) $badges[] = array('catch10k', 'Over ten thousand catches! - BILL\'S PC CAN\'T TAKE ANY MORE');
elseif ($userdata['catches'] >= 5000) $badges[] = array('catch5000', 'Five thousand catches! - Legendary Hunter!');
elseif ($userdata['catches'] >= 2000) $badges[] = array('catch2000', 'Two thousand catches! - Elite Hunter!');
elseif ($userdata['catches'] >= 500) $badges[] = array('catch500', 'Five hundred catches! - Renowned Hunter!');
elseif ($userdata['catches'] >= 200) $badges[] = array('catch200', 'Two hundred catches - Respected Hunter');
elseif ($userdata['catches'] >= 100) $badges[] = array('catch100', 'A hundred catches - Well done!');
elseif ($userdata['catches'] >= 25) $badges[] = array('catch25', 'Twenty five catches - A good start');
//We also want to calculate and display a pokedex percentage badge.
if (isset($dexdata)) {
$dexpercent = round( ((count($dexdata) / count($pokemon)) * 100) );
if ($dexpercent >= 100) $badges[] = array('dex100', '100% Pokedex Completion! - Oak would be proud!');
elseif ($dexpercent >= 95) $badges[] = array('dex95', '95% Pokedex Completion! - Nearly there!');
elseif ($dexpercent >= 90) $badges[] = array('dex90', '90% Pokedex Completion! - Elite Collector!');
elseif ($dexpercent >= 85) $badges[] = array('dex85', '85% Pokedex Completion! - Legendary Collector!');
elseif ($dexpercent >= 80) $badges[] = array('dex80', '80% Pokedex Completion! - Master Collector!');
elseif ($dexpercent >= 75) $badges[] = array('dex75', '75% Pokedex Completion! - Prolific Collector!');
elseif ($dexpercent >= 70) $badges[] = array('dex70', '70% Pokedex Completion! - Renowned Collector!');
elseif ($dexpercent >= 65) $badges[] = array('dex65', '65% Pokedex Completion! - Popular Collector!');
elseif ($dexpercent >= 60) $badges[] = array('dex60', '60% Pokedex Completion - Take this useless HM05 FLASH');
elseif ($dexpercent >= 55) $badges[] = array('dex55', '55% Pokedex Completion - More than halfway there');
elseif ($dexpercent >= 50) $badges[] = array('dex50', '50% Pokedex Completion - Busy Collector');
elseif ($dexpercent >= 45) $badges[] = array('dex45', '45% Pokedex Completion - Experienced Collector');
elseif ($dexpercent >= 40) $badges[] = array('dex40', '40% Pokedex Completion - Familiar Collector');
elseif ($dexpercent >= 35) $badges[] = array('dex35', '35% Pokedex Completion - Exploring Collector');
elseif ($dexpercent >= 30) $badges[] = array('dex30', '30% Pokedex Completion - Wandering Collector');
elseif ($dexpercent >= 25) $badges[] = array('dex25', '25% Pokedex Completion - Local Collector');
elseif ($dexpercent >= 20) $badges[] = array('dex20', '20% Pokedex Completion - Apprentice Collector');
elseif ($dexpercent >= 15) $badges[] = array('dex15', '15% Pokedex Completion - Rookie Collector');
elseif ($dexpercent >= 10) $badges[] = array('dex10', '10% Pokedex Completion - Novice Collector');
elseif ($dexpercent >= 5) $badges[] = array('dex5', '5% Pokedex Completion - Newbie Collector');
}
//Next up, seen pokemon
if (!empty($userdata['seen'])) {
$seendata = explode(',', $userdata['seen']);
if (count($seendata) >= 700) $badges[] = array('s700', 'Seen 700 different pokemon! - Legendary Hunter!');
elseif (count($seendata) >= 500) $badges[] = array('s500', 'Seen 500 different pokemon - Elite Hunter');
elseif (count($seendata) >= 350) $badges[] = array('s350', 'Seen 350 different pokemon - Master Hunter');
elseif (count($seendata) >= 250) $badges[] = array('s250', 'Seen 250 different pokemon - Experienced Hunter');
elseif (count($seendata) >= 200) $badges[] = array('s200', 'Seen 200 different pokemon - Veteran Hunter');
elseif (count($seendata) >= 150) $badges[] = array('s150', 'Seen 150 different pokemon - Seasoned Hunter');
elseif (count($seendata) >= 100) $badges[] = array('s100', 'Seen 100 different pokemon - Successful Hunter');
elseif (count($seendata) >= 50) $badges[] = array('s50', 'Seen 50 different pokemon - Advanced Hunter');
elseif (count($seendata) >= 25) $badges[] = array('s25', 'Seen 25 different pokemon - Intermediate Hunter');
elseif (count($seendata) >= 10) $badges[] = array('s10', 'Seen 10 different pokemon - Rookie Hunter');
elseif (count($seendata) >= 5) $badges[] = array('s5', 'Seen 5 different pokemon - Newbie Hunter');
}
//And now non-unique sightings. Encounters.
if ($userdata['sightings'] >= 10001) $badges[] = array('e10k', 'Master Hunter! Over ten thousand encounters!');
elseif ($userdata['sightings'] >= 5000) $badges[] = array('e5k', 'Super Hunter! Five thousand encounters!');
elseif ($userdata['sightings'] >= 2000) $badges[] = array('e2k', 'Dedicated Hunter! Two thousand encounters!');
elseif ($userdata['sightings'] >= 1000) $badges[] = array('e1k', 'Experienced Hunter - A thousand encounters');
elseif ($userdata['sightings'] >= 500) $badges[] = array('e500', 'Active Hunter - Five hundred encounters');
elseif ($userdata['sightings'] >= 200) $badges[] = array('e200', 'Apprentice Hunter - Two hundred encounters');
elseif ($userdata['sightings'] >= 100) $badges[] = array('e100', 'Getting the hang of it - A hundred encounters');
elseif ($userdata['sightings'] >= 50) $badges[] = array('e50', 'Rookie Hunter - Fifty encounters');
elseif ($userdata['sightings'] >= 25) $badges[] = array('e25', 'Beginner Hunter - 25 encounters');
//What about trades performed?
if (!empty($userdata['trades'])) {
$trades = explode(',',$userdata['trades']);
$td = count($trades);
if ($td >= 1000) $badges[] = array('tr1k', 'Completed 1000 Trades! - Master Trader');
elseif ($td >= 500) $badges[] = array('tr500', 'Completed 500 Trades! - Poké Street Trader');
elseif ($td >= 250) $badges[] = array('tr250', 'Completed 250 Trades! - GIVE ME YOUR POKEMONS');
elseif ($td >= 150) $badges[] = array('tr150', 'Completed 150 Trades - The art of good business is being a good middleman');
elseif ($td >= 100) $badges[] = array('tr100', 'Completed 100 Trades - Elite Trader');
elseif ($td >= 75) $badges[] = array('tr75', 'Completed 75 Trades - Prolific Trader');
elseif ($td >= 50) $badges[] = array('tr50', 'Completed 50 Trades - Renowned Trader');
elseif ($td >= 25) $badges[] = array('tr25', 'Completed 25 Trades - Experienced Trader');
elseif ($td >= 10) $badges[] = array('tr10', 'Completed 10 Trades - Familiar Trader');
elseif ($td >= 5) $badges[] = array('tr5', 'Completed 5 Trades - Rookie Trader');
elseif ($td >= 1) $badges[] = array('tr1', 'Completed 1 Trade - Newbie Trader');
}
//We want to count shinies now. First, shinies they have seen. If they've seen anything.
if (isset($seendata)) {
$shinyseen = 0;
foreach ($seendata as $seenpoke) {
if (is_shiny($seenpoke)) $shinyseen++;
}
if (!empty($shinyseen)) {
if ($shinyseen >= 201) $badges[] = array('seen_shiny200+', 'Seen more than 200 different shiny pokemon! F5F5F5F5F5F5F5F5F5');
elseif ($shinyseen >= 200) $badges[] = array('seen_shiny200', 'Seen 200 different shiny pokemon! F5F5F5F5F5F5F5');
elseif ($shinyseen >= 190) $badges[] = array('seen_shiny190', 'Seen 190 different shiny pokemon! F5F5F5F5F5F5');
elseif ($shinyseen >= 180) $badges[] = array('seen_shiny180', 'Seen 180 different shiny pokemon! F5F5F5F5F5');
elseif ($shinyseen >= 170) $badges[] = array('seen_shiny170', 'Seen 170 different shiny pokemon! F5F5F5F5');
elseif ($shinyseen >= 160) $badges[] = array('seen_shiny160', 'Seen 160 different shiny pokemon! F5F5F5');
elseif ($shinyseen >= 150) $badges[] = array('seen_shiny150', 'Seen 150 different shiny pokemon! F5F5');
elseif ($shinyseen >= 140) $badges[] = array('seen_shiny140', 'Seen 140 different shiny pokemon! F5');
elseif ($shinyseen >= 130) $badges[] = array('seen_shiny130', 'Seen 130 different shiny pokemon! THERE IT IS! THERE IT IS!');
elseif ($shinyseen >= 120) $badges[] = array('seen_shiny120', 'Seen 120 different shiny pokemon! EVs, IVs, IDs, Eh...');
elseif ($shinyseen >= 110) $badges[] = array('seen_shiny110', 'Seen 110 different shiny pokemon! Sparkles');
elseif ($shinyseen >= 100) $badges[] = array('seen_shiny100', 'Seen 100 different shiny pokemon! *ping*');
elseif ($shinyseen >= 90) $badges[] = array('seen_shiny90', 'Seen 90 different shiny pokemon - Elite Rare Game Hunter');
elseif ($shinyseen >= 80) $badges[] = array('seen_shiny80', 'Seen 80 different shiny pokemon - Experienced Rare Hunter');
elseif ($shinyseen >= 70) $badges[] = array('seen_shiny70', 'Seen 70 different shiny pokemon - Busy Rare Game Hunter');
elseif ($shinyseen >= 60) $badges[] = array('seen_shiny60', 'Seen 60 different shiny pokemon - Probably likes pink');
elseif ($shinyseen >= 50) $badges[] = array('seen_shiny50', 'Seen 50 different shiny pokemon - Shiny Skitty *_____*');
elseif ($shinyseen >= 40) $badges[] = array('seen_shiny40', 'Seen 40 different shiny pokemon - GOSH DARN IT I DIDN\'T CATCH IT AAAAAH');
elseif ($shinyseen >= 30) $badges[] = array('seen_shiny30', 'Seen 30 different shiny pokemon - Red Gyarados is Easy Mode');
elseif ($shinyseen >= 20) $badges[] = array('seen_shiny20', 'Seen 20 different shiny pokemon - Extra Lucky Hunter');
elseif ($shinyseen >= 10) $badges[] = array('seen_shiny10', 'Seen 10 different shiny pokemon - Lucky Hunter');
elseif ($shinyseen >= 1) $badges[] = array('seen_shiny', 'Seen a shiny pokemon - Well done!');
}
}
//Now we'll do a bunch of badge checks on their literal pokemon inventory.
if (!empty($userdata['pokemon'])) {
$owneddata = explode(',', $userdata['pokemon']);
//We also want a normalized copy of their inventory that ignores shiny status.
$nod = array_map('round', $owneddata);
//First, how many shiny pokemon does this user own?
$shinyowned = 0;
foreach ($owneddata as $ownedpoke) {
if (is_shiny($ownedpoke)) $shinyowned++;
}
if (!empty($shinyowned)) {
if ($shinyowned >= 101) $badges[] = array('caught_shiny100+', 'Owns more than 100 shiny pokemon! Amazing!');
elseif ($shinyowned >= 100) $badges[] = array('caught_shiny100', 'Owns 100 shiny pokemon! Legendary Hunter/Trader!');
elseif ($shinyowned >= 90) $badges[] = array('caught_shiny90', 'Owns 90 shiny pokemon! - PONYTAAAAA');
elseif ($shinyowned >= 80) $badges[] = array('caught_shiny80', 'Owns 80 shiny pokemon! - F5F5F5F5F5');
elseif ($shinyowned >= 70) $badges[] = array('caught_shiny70', 'Owns 70 shiny pokemon! - Legendary Shiny Collector');
elseif ($shinyowned >= 60) $badges[] = array('caught_shiny60', 'Owns 60 shiny pokemon! - Elite Shiny Collector');
elseif ($shinyowned >= 50) $badges[] = array('caught_shiny50', 'Owns 50 shiny pokemon! - Renowned Shiny Collector');
elseif ($shinyowned >= 45) $badges[] = array('caught_shiny45', 'Owns 45 shiny pokemon! - Midas Balls');
elseif ($shinyowned >= 40) $badges[] = array('caught_shiny40', 'Owns 40 shiny pokemon - Collect your bicycle coupon');
elseif ($shinyowned >= 35) $badges[] = array('caught_shiny35', 'Owns 35 shiny pokemon - Prolific Shiny Collector');
elseif ($shinyowned >= 30) $badges[] = array('caught_shiny30', 'Owns 30 shiny pokemon - Shiny Furret *___*');
elseif ($shinyowned >= 25) $badges[] = array('caught_shiny25', 'Owns 25 shiny pokemon - Decorated Shiny Collector');
elseif ($shinyowned >= 20) $badges[] = array('caught_shiny20', 'Owns 20 shiny pokemon - Popular Shiny Collector');
elseif ($shinyowned >= 15) $badges[] = array('caught_shiny15', 'Owns 15 shiny pokemon - Experienced Shiny Collector');
elseif ($shinyowned >= 10) $badges[] = array('caught_shiny10', 'Owns 10 shiny pokemon - Valued Shiny Collector');
elseif ($shinyowned >= 5) $badges[] = array('caught_shiny5', 'Owns 5 shiny pokemon - Beginner Shiny Collector');
elseif ($shinyowned >= 1) $badges[] = array('caught_shiny', 'Owns a shiny pokemon - New to the shiny club');
}
//Next, see if they own Eevee and all of its evolutions.
if (in_array(133, $nod) && in_array(134, $nod) && in_array(135, $nod) && in_array(136, $nod) && in_array(196, $nod) && in_array(197, $nod) && in_array(470, $nod) && in_array(471, $nod) && in_array(700, $nod)) $badges[] = array('eeveelutions', 'Owns Eevee and all its Eeveelutions');
//What about complete starter sets for each generation?
//Gen1
if (in_array(1, $nod) && in_array(2, $nod) && in_array(3, $nod) && in_array(4, $nod) && in_array(5, $nod) && in_array(6, $nod) && in_array(7, $nod) && in_array(8, $nod) && in_array(9, $nod)) $badges[] = array('starter_gen1', 'Owns all starter pokemon and their evolutions from Generation 1');
//Gen2
if (in_array(152, $nod) && in_array(153, $nod) && in_array(154, $nod) && in_array(155, $nod) && in_array(156, $nod) && in_array(157, $nod) && in_array(158, $nod) && in_array(159, $nod) && in_array(160, $nod)) $badges[] = array('starter_gen2', 'Owns all starter pokemon and their evolutions from Generation 2');
//Gen3
if (in_array(252, $nod) && in_array(253, $nod) && in_array(254, $nod) && in_array(255, $nod) && in_array(256, $nod) && in_array(257, $nod) && in_array(258, $nod) && in_array(259, $nod) && in_array(260, $nod)) $badges[] = array('starter_gen3', 'Owns all starter pokemon and their evolutions from Generation 3');
//Gen4
if (in_array(387, $nod) && in_array(388, $nod) && in_array(389, $nod) && in_array(390, $nod) && in_array(391, $nod) && in_array(392, $nod) && in_array(393, $nod) && in_array(394, $nod) && in_array(395, $nod)) $badges[] = array('starter_gen4', 'Owns all starter pokemon and their evolutions from Generation 4');
//Gen5
if (in_array(495, $nod) && in_array(496, $nod) && in_array(497, $nod) && in_array(498, $nod) && in_array(499, $nod) && in_array(500, $nod) && in_array(501, $nod) && in_array(502, $nod) && in_array(503, $nod)) $badges[] = array('starter_gen5', 'Owns all starter pokemon and their evolutions from Generation 5');
//Gen6
if (in_array(650, $nod) && in_array(651, $nod) && in_array(652, $nod) && in_array(653, $nod) && in_array(654, $nod) && in_array(655, $nod) && in_array(656, $nod) && in_array(657, $nod) && in_array(658, $nod)) $badges[] = array('starter_gen6', 'Owns all starter pokemon and their evolutions from Generation 6');
//We also want to reward trainers who have managed to collect the legendary trios.
if (in_array(144, $nod) && in_array(145, $nod) && in_array(146, $nod)) $badges[] = array('trio1', 'Owns the legendary bird trio of Articuno, Zapdos and Moltres');
if (in_array(243, $nod) && in_array(244, $nod) && in_array(245, $nod)) $badges[] = array('trio2', 'Owns the legendary beast trio of Raikou, Entei and Suicune');
if (in_array(377, $nod) && in_array(378, $nod) && in_array(379, $nod)) $badges[] = array('trio3', 'Owns the legendary golem trio of Regirock, Regice and Registeel');
if (in_array(480, $nod) && in_array(481, $nod) && in_array(482, $nod)) $badges[] = array('trio4', 'Owns the lake guardian trio of Uxie, Mesprit and Azelf');
if (in_array(641, $nod) && in_array(642, $nod) && in_array(645, $nod)) $badges[] = array('trio5', 'Owns the forces of nature trio of Tornadus, Thundurus and Landorus');
//What about Legendary duos too?
if (in_array(150, $nod) && in_array(151, $nod)) $badges[] = array('duo1', 'Owns the legendary duo of Mewtwo and Mew');
if (in_array(249, $nod) && in_array(250, $nod)) $badges[] = array('duo2', 'Owns the legendary tower duo of Lugia and Ho-Oh');
if (in_array(380, $nod) && in_array(381, $nod)) $badges[] = array('duo3', 'Owns the legendary eon duo of Latias and Latios');
if (in_array(488, $nod) && in_array(491, $nod)) $badges[] = array('duo4', 'Owns the legendary lunar duo of Cresselia and Darkrai');
if (in_array(716, $nod) && in_array(717, $nod)) $badges[] = array('duo5', 'Owns the legendary mortality duo of Xerneas and Yveltal');