Skip to content

Commit

Permalink
Set up for showdex
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaD173 committed Feb 7, 2024
1 parent 45e80f7 commit 39cf069
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ package-lock.json
/replay.pokemonshowdown.com/caches/
/replay.pokemonshowdown.com/theme/wrapper.inc.php
/replay.pokemonshowdown.com/ads.txt

/play.pokemonshowdown.com/showdex
/play.pokemonshowdown.com/smogonData
2 changes: 1 addition & 1 deletion play.pokemonshowdown.com/src/battle-dex-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ class BattleMoveSearch extends BattleTypedSearch<'move'> {
if (itemid === 'glalitite') abilityid = 'refrigerate' as ID;

switch (id) {
case 'fakeout': case 'flamecharge': case 'nuzzle': case 'poweruppunch': case 'trailblaze':
case 'fakeout': case 'flamecharge': case 'nuzzle': case 'poweruppunch': case 'trailblaze':
case 'psychout':
return abilityid !== 'sheerforce';
case 'solarbeam': case 'solarblade':
Expand Down
9 changes: 8 additions & 1 deletion play.pokemonshowdown.com/testclient.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<script src="config/config.js"></script>
<!-- <script src="https://play.pokemonshowdown.com/config/config.js"></script> -->
<!-- the "preconnect" one below is optional, but recommended for optimizing loading -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap">
<script>
function loadRemoteData(src) {
var scriptEl = document.createElement('script');
Expand Down Expand Up @@ -132,8 +136,11 @@ <h3><button class="closebutton" tabindex="-1" aria-label="Close"><i class="fa fa
<script>
window.onload = () => {
window.app = new App();
console.log("loaded")
var tag = document.createElement("script");
tag.src = "/showdex/main.js";
document.getElementsByTagName("head")[0].appendChild(tag);
}
</script>

</body>
</html>

0 comments on commit 39cf069

Please sign in to comment.