pokerogue icon indicating copy to clipboard operation
pokerogue copied to clipboard

Check available pkmn before asking to switch, removed cancelled move text

Open 0zuzu opened this issue 9 months ago • 7 comments

QoL changes:

  • Game now checks if player has available Pokemon before asking to switch at the start of battles.
  • Allows player to switch on the first wave (so that the order when building a team doesn't matter)
  • Move text won't be displayed if the move was cancelled. (stops players from mistakenly thinking PP was used and removes a text that's unnecessary)

A move is cancelled if there are no available targets and no PP is used, such as damaging moves in a double battle where both foes already fainted from the previous move.

Before: (asks to switch, Charcadet uses ember but move is cancelled)

https://github.com/pagefaultgames/pokerogue/assets/63069680/ffefac24-fa1e-40e5-bcf8-b540355d64fa

After:

https://github.com/pagefaultgames/pokerogue/assets/63069680/0c5ab3d4-ff6b-4e69-b800-39bc0d679d97

Update: Now multi turn moves like Fly, Outrage and Electro Shot will display failure messages when outside of first use:

https://github.com/pagefaultgames/pokerogue/assets/63069680/cddffe95-35eb-4707-a3d2-8f14baa69c0f

0zuzu avatar May 16 '24 21:05 0zuzu

Not sure about this one. The failed text is there for when there are no targets on the field which is not just when you finish a wild double battle. This also happens when you knock out two pokemon in a trainer battle. Removing the text will be very strange in this case. Also, what about self destruct? This needs more testing for sure

bennybroseph avatar May 17 '24 11:05 bennybroseph

Not sure about this one. The failed text is there for when there are no targets on the field which is not just when you finish a wild double battle. This also happens when you knock out two pokemon in a trainer battle. Removing the text will be very strange in this case. Also, what about self destruct? This needs more testing for sure

About double trainer battles, I don't see why it would be strange to remove that text compared to wild battles. The main reasons for hiding a cancelled move is so that players don't think PP was wasted, and to streamline combat text in grindy wild double battles.

If the community wants to keep the trainer battles more faithful to the Pokemon games then I could add an exception for trainer battles, but personally I don't find it strange at all.

Self destruct still goes through if you have an ally, the move logic didn't change at all.

0zuzu avatar May 17 '24 14:05 0zuzu

The main reasons for hiding a cancelled move is so that players don't think PP was wasted, and to streamline combat text in grindy wild double battles.

What about for Outrage or Fly/Dive/Dig/Bounce/Phantom Force? What about charge moves like Electro Shot?

bennybroseph avatar May 17 '24 16:05 bennybroseph

What about for Outrage or Fly/Dive/Dig/Bounce/Phantom Force? What about charge moves like Electro Shot?

Thank you for bringing me attention to those edge cases. I updated the commit so that multi turn moves (when they ignore PP usage) will still display a failure message, I included a third video to showcase how it works.

I also updated the switching out phase at the start of battles to prevent switching on the first wave of a Daily Run.

0zuzu avatar May 17 '24 23:05 0zuzu

The main reasons for hiding a cancelled move is so that players don't think PP was wasted, and to streamline combat text in grindy wild double battles.

I think this is a good thought -- but I'm personally in favor of leaving the message in and making it clearer that the move wasn't actually used. Removing the message completely might lead players to believe that the battle ends when all Pokemon on one side are fainted, when it actually plays out the remainder of the turn.

knispeja avatar May 20 '24 20:05 knispeja

I agree, and on top of this I already have plans on fixing moves that should continue even when there are no targets left. This will help to better distinguish these moves. Currently I'm talking about entry hazards/weather/terrain moves as these should be able to be used at the end of a battle or between turns after defeating all enemies in a double battle.

bennybroseph avatar May 20 '24 20:05 bennybroseph

Ok, so here's what I'll do: I'll remove the cancelled move logic from this PR, leaving only the switching out improvements. Later, we can work on better informing players about cancelled moves.

0zuzu avatar May 20 '24 22:05 0zuzu