Skip to content

Commit 9434aed

Browse files
authored
Add SSB client support (#2245)
* ssb support * SSB * teehee * poop * more tooltip things * Fix tooltips * ok support * More tooltip updates * last changes * Fix build
1 parent 05ca742 commit 9434aed

File tree

4 files changed

+334
-49
lines changed

4 files changed

+334
-49
lines changed

build-tools/build-indexes

+9-2
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
322322
const LC = GENS.map(num => num + 0.7);
323323
const STADIUM = [2.04, 1.04];
324324
const NATDEX = [9.1, 8.1];
325-
const OTHER = [9.9, 9.411, 9.41, 9.401, 9.4, 9.2, -9.4, -9.401, 8.6, 8.4, 8.2, 8.1, -8.4, -8.6, 7.1];
325+
const OTHER = [9.9, 9.6, 9.411, 9.41, 9.401, 9.4, 9.2, -9.4, -9.401, 8.6, 8.4, 8.2, 8.1, -8.4, -8.6, 7.1];
326326

327327
// process.stdout.write("\n ");
328328
for (const genIdent of [...GENS, ...DOUBLES, ...VGC, ...NFE, ...STADIUM, ...OTHER, ...NATDEX, ...LC]) {
@@ -339,6 +339,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
339339
const isDoubles = (genIdent < 0);
340340
const isVGC = ('' + genIdent).endsWith('.5');
341341
const isGen9BH = genIdent === 9.9;
342+
const isSSB = genIdent === 9.6;
342343
const genNum = Math.floor(isDoubles ? -genIdent : genIdent);
343344
const gen = (() => {
344345
let genStr = 'gen' + genNum;
@@ -348,6 +349,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
348349
if (isPreDLC) genStr += 'predlc';
349350
if (isSVDLC1) genStr += 'dlc1';
350351
if (isStadium) genStr += 'stadium' + (genNum > 1 ? genNum : '');
352+
if (isSSB) genStr += 'ssb';
351353
return genStr;
352354
})();
353355
// process.stdout.write("" + gen + (isDoubles ? " doubles" : "") + "... ");
@@ -543,6 +545,11 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
543545
BattleTeambuilderTable['bh'].tiers = tiers;
544546
BattleTeambuilderTable['bh'].overrideTier = overrideTier;
545547
BattleTeambuilderTable['bh'].formatSlices = formatSlices;
548+
} else if (isSSB) {
549+
BattleTeambuilderTable['gen9ssb'] = {};
550+
BattleTeambuilderTable['gen9ssb'].tiers = tiers;
551+
BattleTeambuilderTable['gen9ssb'].overrideTier = overrideTier;
552+
BattleTeambuilderTable['gen9ssb'].formatSlices = formatSlices;
546553
} else if (gen === 'gen9') {
547554
BattleTeambuilderTable.tiers = tiers;
548555
BattleTeambuilderTable.items = items;
@@ -1148,7 +1155,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... ");
11481155
// Mods
11491156
//
11501157

1151-
for (const mod of ['gen7letsgo', 'gen8bdsp']) {
1158+
for (const mod of ['gen7letsgo', 'gen8bdsp', 'gen9ssb']) {
11521159
const modDex = Dex.mod(mod);
11531160
const modData = modDex.data;
11541161
const parentDex = Dex.forGen(modDex.gen);

play.pokemonshowdown.com/src/battle-animations.ts

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ export class BattleScene implements BattleSceneStub {
122122
}
123123
this.numericId = numericId;
124124
this.tooltips = new BattleTooltips(battle);
125+
if (this.battle.id.includes('superstaffbros')) this.tooltips.dex = Dex.mod('gen9ssb' as ID);
125126
this.tooltips.listen($frame[0]);
126127

127128
this.preloadEffects();

0 commit comments

Comments
 (0)