Skip to content

Commit 51496bb

Browse files
committed
feat: Support charged moves in GO dt
1 parent 5974694 commit 51496bb

1 file changed

Lines changed: 87 additions & 0 deletions

File tree

src/ps/commands/dt.tsx

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,93 @@ export const command: PSCommand[] = [
101101
</>
102102
);
103103
}
104+
if (query in GOData.chargedMoves) {
105+
const move = GOData.chargedMoves[query];
106+
return broadcastHTML(
107+
<>
108+
<ul className="utilichart" style={{ marginBottom: -10 }}>
109+
<li className="result">
110+
<span className="col movenamecol">
111+
&nbsp;
112+
<a
113+
href={`https://gamepress.gg/pokemongo/pokemon-move/${move.name.replace(/ /g, '-').toLowerCase()}`}
114+
target="_blank"
115+
>
116+
{move.name}
117+
</a>
118+
</span>
119+
<span className="col typecol">
120+
<img
121+
src={`https://play.pokemonshowdown.com/sprites/types/${move.type}.png`}
122+
alt={move.type}
123+
width="32"
124+
height="14"
125+
/>
126+
<img src={`https://play.pokemonshowdown.com/sprites/categories/Physical.png`} alt="Charged" width="32" height="14" />
127+
</span>
128+
</li>
129+
<li className="result">
130+
<span className="col widelabelcol" style={{ marginTop: 10, color: '#999' }}>
131+
PvP
132+
</span>
133+
<span className="col widelabelcol">
134+
<em>Energy</em>
135+
<br />
136+
{move.pvp.energy}
137+
</span>
138+
<span className="col widelabelcol">
139+
<em>Power</em>
140+
<br />
141+
{move.pvp.power}
142+
</span>
143+
<span className="col labelcol">
144+
<em>DPE</em>
145+
<br />
146+
{move.pvp.dpe}
147+
</span>
148+
<span className="col movedesccol">&nbsp;&nbsp;{move.desc}</span>
149+
</li>
150+
<li className="result">
151+
<span className="col widelabelcol" style={{ marginTop: 10, color: '#999' }}>
152+
PvE
153+
</span>
154+
<span className="col widelabelcol">
155+
<em>Energy</em>
156+
<br />
157+
{move.pve.energy}
158+
</span>
159+
<span className="col widelabelcol">
160+
<em>Power</em>
161+
<br />
162+
{move.pve.power}
163+
</span>
164+
<span className="col labelcol">
165+
<em>Time</em>
166+
<br />
167+
{move.pve.duration}s
168+
</span>
169+
<span className="col labelcol">
170+
<em>DPE</em>
171+
<br />
172+
{move.pve.dpe}
173+
</span>
174+
<span className="col widelabelcol">
175+
<em>
176+
D<sup>2</sup>/ES
177+
</em>
178+
<br />
179+
{move.pve.d2pes}
180+
</span>
181+
<span className="col widelabelcol">
182+
<em>Delay</em>
183+
<br />
184+
{move.pve.delay}s
185+
</span>
186+
</li>
187+
</ul>
188+
</>
189+
);
190+
}
104191

105192
throw new ChatError($T('ENTRY_NOT_FOUND'));
106193
},

0 commit comments

Comments
 (0)