Giter VIP home page Giter VIP logo

oranguru's Introduction

oranguru's People

Contributors

ashbaldry avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

oranguru's Issues

Introduce multi-turn behaviour for selected moves

I'm sure you're aware of move rest periods, like how hyper beam needs a recharge turn. I'm guessing there might need to be some logic for moves like rest, wrap, solar beam, etc. I can't recall if this sort of information is stored in PokeAPI, but having a feeling that it isn't?

Here's me spamming hyper beam on a poor Rhydon:

Raichu has used hyper-beam 
hyper-beam did 58 damage
Rhydon has used seismic-toss 
seismic-toss did 0 damage

P1: Raichu (63 / 120) 
P2: Rhydon (107 / 165) 

What would you like to do? 

1: Attack
2: Switch
3: Check Stats

Selection: 1
Which move would you like to use? 

1: hyper-beam
2: toxic
3: rest
4: thunderbolt

Selection: 1
Raichu has used hyper-beam 
hyper-beam did 60 damage
Rhydon has used thunderbolt 
thunderbolt did 22 damage

P1: Raichu (41 / 120) 
P2: Rhydon (47 / 165) 

What would you like to do? 

1: Attack
2: Switch
3: Check Stats

Add PP to move selection

There are times that a move has run out of PP and user can select it. This option should be visible, but unable to be used

Error when using move `NA`

Using a move labelled NA results in an if error.

Magikarp was totally ready to wipe the opposition when I accidentally used a NA move!

P1: Magikarp (80 / 80) 
P2: Rhydon (47 / 165) 

What would you like to do? 

1: Attack
2: Switch
3: Check Stats

Selection: 1
Which move would you like to use? 

1: tackle
2: splash
3: NA
4: NA

Selection: 3
Error in if (m1_priority == m2_priority) { : 
  missing value where TRUE/FALSE needed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.