added item support and team registration #4

Open
hansoo wants to merge 14 commits from add-item-support into master
2 changed files with 16 additions and 0 deletions
Showing only changes of commit 670a01a7fa - Show all commits

View File

@@ -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;

View File

@@ -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;