SHOW:
|
|
- or go back to the newest paste.
1 | 'use strict'; | |
2 | ||
3 | exports.BattleScripts = { | |
4 | init: function () { | |
5 | for (let i in this.data.Pokedex) { | |
6 | if (this.data.Pokedex[i].types[0] === 'Dark') { | |
7 | this.data.Pokedex[i].types[0] = 'Bug'; | |
8 | } else if (this.data.Pokedex[i].types[1] === 'Dark') { | |
9 | this.data.Pokedex[i].types[1] = 'Bug'; | |
10 | } else if (this.data.Pokedex[i].types[0] === 'Bug') { | |
11 | this.data.Pokedex[i].types[0] = 'Flying'; | |
12 | } else if (this.data.Pokedex[i].types[1] === 'Bug') { | |
13 | this.data.Pokedex[i].types[1] = 'Flying'; | |
14 | } else if (this.data.Pokedex[i].types[0] === 'Dragon') { | |
15 | this.data.Pokedex[i].types[0] = 'Ice'; | |
16 | } else if (this.data.Pokedex[i].types[1] === 'Dragon') { | |
17 | this.data.Pokedex[i].types[1] = 'Ice'; | |
18 | } else if (this.data.Pokedex[i].types[0] === 'Electric') { | |
19 | this.data.Pokedex[i].types[0] = 'Ground'; | |
20 | } else if (this.data.Pokedex[i].types[1] === 'Electric') { | |
21 | this.data.Pokedex[i].types[1] = 'Ground'; | |
22 | } else if (this.data.Pokedex[i].types[0] === 'Fairy') { | |
23 | this.data.Pokedex[i].types[0] = 'Steel'; | |
24 | } else if (this.data.Pokedex[i].types[1] === 'Fairy') { | |
25 | this.data.Pokedex[i].types[1] = 'Steel'; | |
26 | } else if (this.data.Pokedex[i].types[0] === 'Fire') { | |
27 | this.data.Pokedex[i].types[0] = 'Rock'; | |
28 | } else if (this.data.Pokedex[i].types[1] === 'Fire') { | |
29 | this.data.Pokedex[i].types[1] = 'Rock'; | |
30 | } else if (this.data.Pokedex[i].types[0] === 'Fighting') { | |
31 | this.data.Pokedex[i].types[0] = 'Fairy'; | |
32 | } else if (this.data.Pokedex[i].types[1] === 'Fighting') { | |
33 | this.data.Pokedex[i].types[1] = 'Fairy'; | |
34 | } else if (this.data.Pokedex[i].types[0] === 'Flying') { | |
35 | this.data.Pokedex[i].types[0] = 'Electric'; | |
36 | } else if (this.data.Pokedex[i].types[1] === 'Flying') { | |
37 | this.data.Pokedex[i].types[1] = 'Electric'; | |
38 | } else if (this.data.Pokedex[i].types[0] === 'Ghost') { | |
39 | this.data.Pokedex[i].types[0] = 'Dark'; | |
40 | } else if (this.data.Pokedex[i].types[1] === 'Ghost') { | |
41 | this.data.Pokedex[i].types[1] = 'Dark'; | |
42 | } else if (this.data.Pokedex[i].types[0] === 'Grass') { | |
43 | this.data.Pokedex[i].types[0] = 'Poison'; | |
44 | } else if (this.data.Pokedex[i].types[1] === 'Grass') { | |
45 | this.data.Pokedex[i].types[1] = 'Poison'; | |
46 | } else if (this.data.Pokedex[i].types[0] === 'Ground') { | |
47 | this.data.Pokedex[i].types[0] = 'Water'; | |
48 | } else if (this.data.Pokedex[i].types[1] === 'Ground') { | |
49 | this.data.Pokedex[i].types[1] = 'Water'; | |
50 | } else if (this.data.Pokedex[i].types[0] === 'Ice') { | |
51 | this.data.Pokedex[i].types[0] = 'Fire'; | |
52 | } else if (this.data.Pokedex[i].types[1] === 'Ice') { | |
53 | this.data.Pokedex[i].types[1] = 'Fire'; | |
54 | } else if (this.data.Pokedex[i].types[0] === 'Normal') { | |
55 | this.data.Pokedex[i].types[0] = 'Fighting'; | |
56 | } else if (this.data.Pokedex[i].types[1] === 'Normal') { | |
57 | this.data.Pokedex[i].types[1] = 'Fighting'; | |
58 | } else if (this.data.Pokedex[i].types[0] === 'Poison') { | |
59 | this.data.Pokedex[i].types[0] = 'Psychic'; | |
60 | } else if (this.data.Pokedex[i].types[1] === 'Poison') { | |
61 | this.data.Pokedex[i].types[1] = 'Psychic'; | |
62 | } else if (this.data.Pokedex[i].types[0] === 'Psychic') { | |
63 | this.data.Pokedex[i].types[0] = 'Ghost'; | |
64 | } else if (this.data.Pokedex[i].types[1] === 'Psychic') { | |
65 | this.data.Pokedex[i].types[1] = 'Ghost'; | |
66 | } else if (this.data.Pokedex[i].types[0] === 'Rock') { | |
67 | this.data.Pokedex[i].types[0] = 'Dragon'; | |
68 | } else if (this.data.Pokedex[i].types[1] === 'Rock') { | |
69 | this.data.Pokedex[i].types[1] = 'Dragon'; | |
70 | } else if (this.data.Pokedex[i].types[0] === 'Steel') { | |
71 | this.data.Pokedex[i].types[0] = 'Normal'; | |
72 | } else if (this.data.Pokedex[i].types[1] === 'Steel') { | |
73 | this.data.Pokedex[i].types[1] = 'Normal'; | |
74 | } else if (this.data.Pokedex[i].types[0] === 'Water') { | |
75 | this.data.Pokedex[i].types[0] = 'Grass'; | |
76 | } else if (this.data.Pokedex[i].types[1] === 'Water') { | |
77 | this.data.Pokedex[i].types[1] = 'Grass'; | |
78 | } /* Copy and paste this as many times as you want/need */ | |
79 | } | |
80 | for (let j in this.data.Movedex) { | |
81 | if (this.data.Movedex[j].types[0] === 'Dark') { | |
82 | this.data.Movedex[j].type = 'Bug'; | |
83 | } else if (this.data.Movedex[j].type === 'Bug') { | |
84 | this.data.Movedex[j].type = 'Flying'; | |
85 | } else if (this.data.Movedex[j].type === 'Dragon') { | |
86 | this.data.Movedex[j].type = 'Ice'; | |
87 | } else if (this.data.Movedex[j].type === 'Electric') { | |
88 | this.data.Movedex[j].type = 'Ground'; | |
89 | } else if (this.data.Movedex[j].type === 'Fairy') { | |
90 | this.data.Movedex[j].type = 'Steel'; | |
91 | } else if (this.data.Movedex[j].type === 'Fire') { | |
92 | this.data.Movedex[j].type = 'Rock'; | |
93 | } else if (this.data.Movedex[j].type === 'Fighting') { | |
94 | this.data.Movedex[j].type = 'Fairy'; | |
95 | } else if (this.data.Movedex[j].type === 'Flying') { | |
96 | this.data.Movedex[j].type = 'Electric'; | |
97 | } else if (this.data.Movedex[j].type === 'Ghost') { | |
98 | this.data.Movedex[j].type = 'Dark'; | |
99 | } else if (this.data.Movedex[j].type === 'Grass') { | |
100 | this.data.Movedex[j].type = 'Poison'; | |
101 | } else if (this.data.Movedex[j].type === 'Ground') { | |
102 | this.data.Movedex[j].type = 'Water'; | |
103 | } else if (this.data.Movedex[j].type === 'Ice') { | |
104 | this.data.Movedex[j].type = 'Fire'; | |
105 | } else if (this.data.Movedex[j].type === 'Normal') { | |
106 | this.data.Movedex[j].type = 'Fighting'; | |
107 | } else if (this.data.Movedex[j].type === 'Poison') { | |
108 | this.data.Movedex[j].type = 'Psychic'; | |
109 | } else if (this.data.Movedex[j].type === 'Psychic') { | |
110 | this.data.Movedex[j].type = 'Ghost'; | |
111 | } else if (this.data.Movedex[j].type === 'Rock') { | |
112 | this.data.Movedex[j].type = 'Dragon'; | |
113 | } else if (this.data.Movedex[j].type === 'Steel') { | |
114 | this.data.Movedex[j].type = 'Normal'; | |
115 | } else if (this.data.Movedex[j].type === 'Water') { | |
116 | this.data.Movedex[j].type = 'Grass'; | |
117 | } /* Copy and paste this as many times as you want/need */ | |
118 | } | |
119 | } | |
120 | }; |