-
Notifications
You must be signed in to change notification settings - Fork 5
/
calcextract.html
43 lines (37 loc) · 1.39 KB
/
calcextract.html
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
<html>
<textarea id="abedesc" onClick="load()" style="width:900px;height:500px;"></textarea>
<button onClick="load()">Click</button>
</html>
<script>
function load() {
let pk2ab1 = '';
Object.values(pokedexdata).forEach(mon => {
pk2ab1 += `'${mon.name}': {\n types: ['${mon.types[0]}', '${mon.types[1]}'],\n bs: {hp: ${mon.baseStats.hp}, at: ${mon.baseStats.atk}, df: ${mon.baseStats.def}, sa: ${mon.baseStats.spa}, sd: ${mon.baseStats.spd}, sp: ${mon.baseStats.spe}},\n weightkg: ${mon.weightkg},\n abilities: {0: '${mon.abilities[0]}'}, \n},\n`;
pk2ab1 = pk2ab1.replace(', "undefined"','');
});
document.getElementById("abedesc").innerHTML = `${pk2ab1}`;
}
let pokedexdata = {
// ENTER POKEDEX DATA HERE, Check the } at the end
// JUST DIRECTLY COPY FROM pokedex.ts THE TOOL WILL TAKE CARE OF THE FORMAT ITSELF
volquag: {
fusion: ['Volcanion', 'Quagsire'],
num: 1,
name: "Volquag",
types: ["Fire", "Water"],
baseStats: {hp: 90, atk: 97, def: 114, spa: 100, spd: 83, spe: 65},
abilities: {0: "Porous"},
weightkg: 135,
},
revarantis: {
fusion: ['Revavroom', 'Lurantis'],
num: 1,
name: "Revarantis",
types: ["Steel", "Grass"],
baseStats: {hp: 75, atk: 122, def: 90, spa: 75, spd: 80, spe: 67},
abilities: {0: "Unfiltered"},
weightkg: 69.3,
},
// END POKEDEX DATA HERE
}
</script>