-
Notifications
You must be signed in to change notification settings - Fork 33
/
pokemonsPerRoute.js
143 lines (133 loc) · 5.39 KB
/
pokemonsPerRoute.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
var pokemonsPerRoute = {
1: {
land: ["Pidgey", "Rattata"]
},
2: {
land: ["Caterpie", "Weedle", "Rattata", "Nidoran(F)", "Nidoran(M)"]
},
3: {
land: ["Pidgey", "Rattata", "Spearow", "Sandshrew", "Jigglypuff", "Mankey"]
},
4: {
land: ["Rattata", "Spearow", "Ekans", "Sandshrew", "Mankey"],
water: ["Poliwag", "Goldeen", "Psyduck", "Krabby", "Seaking"]
},
5: {
land: ["Pidgey", "Pidgeotto", "Rattata", "Jigglypuff", "Oddish", "Meowth", "Mankey", "Abra", "Bellsprout"]
},
6: {
land: ["Pidgey", "Pidgeotto", "Rattata", "Jigglypuff", "Oddish", "Meowth", "Mankey", "Abra", "Bellsprout"],
water: ["Poliwag", "Goldeen", "Shellder", "Krabby"]
},
7: {
land: ["Pidgey", "Pidgeotto", "Rattata", "Vulpix", "Jigglypuff", "Oddish", "Meowth", "Mankey", "Growlithe", "Abra", "Bellsprout"]
},
8: {
land: ["Pidgey", "Pidgeotto", "Rattata", "Ekans", "Sandshrew", "Vulpix", "Jigglypuff", "Meowth", "Mankey", "Growlithe", "Abra", "Kadabra"]
},
9: {
land: ["Rattata", "Raticate", "Spearow", "Fearow", "Ekans", "Sandshrew", "Nidoran(F)", "Nidoran(M)", "Nidorina", "Nidorino"]
},
10: {
land: ["Rattata", "Raticate", "Spearow", "Ekans", "Sandshrew", "Nidoran(F)", "Nidoran(M)", "Machop", "Magnemite", "Voltorb"],
water: ["Poliwag", "Goldeen", "Poliwhirl", "Slowpoke", "Krabby", "Kingler", "Horsea"]
},
11: {
land: ["Pidgey", "Pidgeotto", "Raticate", "Rattata", "Spearow", "Ekans", "Sandshrew", "Drowzee"],
water: ["Poliwag", "Goldeen", "Tentacool", "Shellder", "Krabby", "Horsea"]
},
12: {
land: ["Pidgey", "Pidgeotto", "Oddish", "Gloom", "Venonat", "Bellsprout", "Weepinbell", "Farfetch'd", "Snorlax"],
water: ["Slowbro", "Magikarp", "Poliwag", "Goldeen", "Tentacool", "Krabby", "Horsea", "Seadra"]
},
13: {
land: ["Pidgey", "Pidgeotto", "Oddish", "Gloom", "Venonat", "Bellsprout", "Weepinbell", "Farfetch'd", "Ditto"],
water: ["Slowbro", "Magikarp", "Poliwag", "Goldeen", "Tentacool", "Krabby", "Horsea", "Seadra"]
},
14: {
land: ["Pidgey", "Pidgeotto", "Oddish", "Gloom", "Venonat", "Venomoth", "Bellsprout", "Weepinbell", "Ditto"],
water: ["Poliwag", "Goldeen"]
},
15: {
land: ["Pidgey", "Pidgeotto", "Oddish", "Gloom", "Venonat", "Venomoth", "Bellsprout", "Weepinbell", "Ditto"]
},
16: {
land: ["Rattata", "Raticate", "Spearow", "Fearow", "Doduo", "Snorlax"]
},
17: {
land: ["Raticate", "Spearow", "Fearow", "Ponyta", "Doduo", "Dodrio"],
water: ["Poliwag", "Goldeen", "Tentacool", "Shellder", "Krabby"]
},
18: {
land: ["Rattata", "Raticate", "Spearow", "Fearow", "Doduo"],
water: ["Poliwag", "Goldeen", "Tentacool", "Shellder", "Krabby"]
},
19: {
water: ["Tentacool", "Magikarp", "Poliwag", "Goldeen", "Tentacruel", "Shellder", "Horsea", "Staryu"]
},
20: {
water: ["Tentacool", "Magikarp", "Poliwag", "Goldeen", "Tentacruel", "Shellder", "Horsea", "Staryu"]
},
21: {
land: ["Pidgey", "Pidgeotto", "Rattata", "Raticate", "Tangela"],
water: ["Magikarp", "Poliwag", "Goldeen", "Tentacruel", "Shellder", "Horsea", "Staryu"]
},
22: {
land: ["Rattata", "Spearow", "Nidoran(F)", "Nidoran(M)", "Mankey"],
water: ["Poliwag", "Poliwhirl", "Goldeen"]
},
23: {
land: ["Spearow", "Fearow", "Ekans", "Arbok", "Sandshrew", "Sandslash", "Nidorina", "Nidorino", "Mankey", "Primeape", "Ditto"],
water: ["Poliwag", "Goldeen", "Poliwhirl", "Slowbro", "Kingler", "Seadra", "Seaking"]
},
24: {
land: ["Caterpie", "Metapod", "Weedle", "Kakuna", "Pidgey", "Pidgey", "Pidgeotto", "Oddish", "Venonat", "Abra", "Bellsprout"],
water: ["Poliwag", "Goldeen", "Psyduck", "Krabby", "Seaking"]
},
25: {
land: ["Caterpie", "Metapod", "Weedle", "Kakuna", "Pidgey", "Pidgeotto", "Oddish", "Venonat", "Abra", "Bellsprout"],
water: ["Poliwag", "Goldeen", "Psyduck", "Krabby"]
}
}
var routeCompleted = function(route){
if(isActive("Normal Rod") && pokemonsPerRoute[route].water != undefined){
if(pokemonsPerRoute[route].land != undefined){
var possiblePokemon = pokemonsPerRoute[route].land.concat(pokemonsPerRoute[route].water);
} else {
var possiblePokemon = pokemonsPerRoute[route].water;
}
}
else {
if(route == 19 || route == 20){
route = 18;
}
var possiblePokemon = pokemonsPerRoute[route].land;
}
for( var i = 0; i<possiblePokemon.length; i++){
if(!alreadyCaught(possiblePokemon[i])){
return false;
}
}
return true;
}
var routeCompletedShiny = function(route){
if(isActive("Normal Rod") && pokemonsPerRoute[route].water != undefined){
if(pokemonsPerRoute[route].land != undefined){
var possiblePokemon = pokemonsPerRoute[route].land.concat(pokemonsPerRoute[route].water);
} else {
var possiblePokemon = pokemonsPerRoute[route].water;
}
}
else {
if(route == 19 || route == 20){
route = 18;
}
var possiblePokemon = pokemonsPerRoute[route].land;
}
for( var i = 0; i<possiblePokemon.length; i++){
if(!alreadyCaughtShiny(possiblePokemon[i])){
return false;
}
}
return true;
}