aed3 / poke-sim

Creating a Pokemon battling and analyzing C++ library designed for speed.
BSD 3-Clause "New" or "Revised" License
19 stars 1 forks source link

BattleAction.hitStepMoveHitLoop [Functionality] #5

Closed aed3 closed 1 year ago

aed3 commented 1 year ago

The main idea here is for the code to better handle how random events will work. This comes down to how the number of hits is calculated and how accuracy is used to determine if a move hits.

Some other aspects of the function to change/improve:

aed3 commented 1 year ago

There's nothing too complicated about this function that requires a design doc to resolve. The only part that required more thought, handling multihit moves, was solved when writing the description. The more fleshed-out version of the solution: