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