added new button
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
console.log("skip");
|
||||
return;
|
||||
}
|
||||
console.log(attackData);
|
||||
if (attack_direction === "p1p2") {
|
||||
attacker = player1Data;
|
||||
defender = player2Data;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user