mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 00:12:16 +02:00
Select move UI shows PP
This commit is contained in:
parent
77caa8ece5
commit
7f820a0d38
@ -1337,7 +1337,7 @@ export function getPlayerShopModifierTypeOptionsForWave(waveIndex: integer, base
|
|||||||
|
|
||||||
const options = [
|
const options = [
|
||||||
[
|
[
|
||||||
new ModifierTypeOption(modifierTypes.POTION(), 0, baseCost * 0.2),
|
new ModifierTypeOption(modifierTypes.PP_MAX(), 0, baseCost * 0.2),
|
||||||
new ModifierTypeOption(modifierTypes.ETHER(), 0, baseCost * 0.4),
|
new ModifierTypeOption(modifierTypes.ETHER(), 0, baseCost * 0.4),
|
||||||
new ModifierTypeOption(modifierTypes.REVIVE(), 0, baseCost * 2)
|
new ModifierTypeOption(modifierTypes.REVIVE(), 0, baseCost * 2)
|
||||||
],
|
],
|
||||||
|
@ -663,7 +663,10 @@ export default class PartyUiHandler extends MessageUiHandler {
|
|||||||
case PartyOption.MOVE_2:
|
case PartyOption.MOVE_2:
|
||||||
case PartyOption.MOVE_3:
|
case PartyOption.MOVE_3:
|
||||||
case PartyOption.MOVE_4:
|
case PartyOption.MOVE_4:
|
||||||
optionName = pokemon.moveset[option - PartyOption.MOVE_1].getName();
|
const move = pokemon.moveset[option - PartyOption.MOVE_1];
|
||||||
|
const maxPP = move.getMovePp();
|
||||||
|
const currPP = maxPP - move.ppUsed;
|
||||||
|
optionName = `${move.getName()} ${currPP}/${maxPP}`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (formChangeItemModifiers && option >= PartyOption.FORM_CHANGE_ITEM) {
|
if (formChangeItemModifiers && option >= PartyOption.FORM_CHANGE_ITEM) {
|
||||||
|
Loading…
Reference in New Issue
Block a user