Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement fighting in battle state #23

Open
biggestcookie opened this issue Jun 12, 2020 · 0 comments
Open

Implement fighting in battle state #23

biggestcookie opened this issue Jun 12, 2020 · 0 comments
Labels
feature New feature or request

Comments

@biggestcookie
Copy link
Collaborator

biggestcookie commented Jun 12, 2020

The player should be able to attack the enemy Pokemon.

  • Order of player vs. enemy attack is up to your discretion -- ensuring the player always attacks first will make logic much easier, but you can implement a probability function for who goes first if you want.
  • Create a function to calculate damage. This should take two parameters: player Pokemon and enemy Pokemon. You may use your discretion on how to calculate a Pokemon's base damage, but ensure Pokemon type multipliers are respected.
  • Print out which Pokemon attacked the other, and how much damage was dealt.
  • If a Pokemon's move has a type multiplier other than normal, ensure you print out the corresponding text (i.e. "It's SUPER effective!")
  • If the enemy's health falls below zero, notify the player of their victory and return to the main menu.
  • If the player's health falls below zero and they do not have any more Pokemon, notify them of their Game Over and kill the application.
  • If the player's health falls below zero and they have other Pokemon in their party, remove the dead Pokemon from the party and open the TEAM select menu without the option to quit. Change the player's current Pokemon to the one selected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: In Progress
Development

No branches or pull requests

1 participant