added new button

This commit is contained in:
2023-02-06 20:54:38 +09:00
parent 42b6f6af20
commit 670a01a7fa
2 changed files with 16 additions and 0 deletions

View File

@@ -179,6 +179,21 @@
>
Load
</button><br />
<button
on:click={() => {
pokemonDataArray.forEach((pd) => {
pd.attack_buff = 0;
pd.defense_buff = 0;
pd.special_attack_buff = 0;
pd.special_defense_buff = 0;
pd.speed_buff = 0;
pd.terastype = [0];
});
pokemonData = pokemonDataArray[index];
}}
>
Reset Battle Status
</button><br />
<button
on:click={() => {
pokemonData = undefined;