diff --git a/play.pokemonshowdown.com/src/battle-team-editor.tsx b/play.pokemonshowdown.com/src/battle-team-editor.tsx
index 723d0d36b..f8e1cab1d 100644
--- a/play.pokemonshowdown.com/src/battle-team-editor.tsx
+++ b/play.pokemonshowdown.com/src/battle-team-editor.tsx
@@ -811,17 +811,6 @@ export class TeamEditor extends preact.Component<{
this.wizard = wizard;
this.forceUpdate();
};
- static renderTypeIcon(type: string | null, b?: boolean) { // b is just for utilichart.js
- if (!type) return null;
-
- type = Dex.types.get(type).name;
- if (!type) type = '???';
- let sanitizedType = type.replace(/\?/g, '%3f');
- return
;
- }
static probablyMobile() {
return document.body.offsetWidth < 500;
}
@@ -1599,11 +1588,11 @@ class TeamTextbox extends preact.Component<{
{editor.gen === 9 ? (
- {TeamEditor.renderTypeIcon(set.teraType || species.requiredTeraType || species.types[0])}
+
) : editor.hpTypeMatters(set) ? (
- {TeamEditor.renderTypeIcon(editor.getHPType(set))}
+
) : (
@@ -1676,17 +1665,11 @@ class TeamTextbox extends preact.Component<{
const num = Dex.getPokemonIconNum(species.id);
if (!num) return null;
- const top = Math.floor(num / 12) * 30;
- const left = (num % 12) * 40;
- const iconStyle = `background:transparent url(${Dex.resourcePrefix}sprites/pokemonicons-sheet.png) no-repeat scroll -${left}px -${top}px`;
-
- const itemStyle = set.item && Dex.getItemIcon(editor.dex.items.get(set.item));
-
if (editor.narrow) {
return
-
- {species.types.map(type =>
{TeamEditor.renderTypeIcon(type)}
)}
-
+
+ {species.types.map(type =>
)}
+
;
}
return [
-
{species.types.map(type => TeamEditor.renderTypeIcon(type))}
+
{species.types.map(type =>
)}
,
{this.renderStats(set, i)}
,
@@ -1909,7 +1892,7 @@ class TeamWizard extends preact.Component<{
@@ -1966,7 +1949,7 @@ class TeamWizard extends preact.Component<{
|