Support playing battles

This should be a much nicer architecture than the old
`client-battle.js`.

In particular, much of the logic of choosing moves/switches has been
moved into a new `battle-choices.ts`, with `panel-battle.tsx` only
covering the UI.
This commit is contained in:
Guangcong Luo
2020-03-23 01:53:38 -07:00
parent 523d63ab01
commit 40d077903f
15 changed files with 1009 additions and 160 deletions

View File

@@ -76,6 +76,7 @@
<script src="data/text.js"></script>
<script src="js/battle-tooltips.js"></script>
<script src="js/battle.js"></script>
<script src="js/battle-choices.js"></script>
<script src="js/panel-battle.js"></script>
<script src="js/battle-dex-data.js"></script>
@@ -91,4 +92,7 @@
<script src="js/battle-searchresults.js?"></script>
<script src="js/panel-teambuilder-team.js?"></script>
<script src="https://play.pokemonshowdown.com/data/pokedex-mini.js"></script>
<script src="https://play.pokemonshowdown.com/data/pokedex-mini-bw.js"></script>
</body></html>