LAMaglan / PokeFightSimulator

A (simple) fight simulator between any two Pokemon using FastAPI with Jinja frontend
0 stars 0 forks source link

Improve fight logic #8

Closed LAMaglan closed 3 months ago

LAMaglan commented 4 months ago

The battle logic is simply whoever has the higher sum of base stats. Link to specific improvements in separate issues below: "Real" logic with (base) stats: https://github.com/LAMaglan/PokeFightSimulator/issues/29 (DONE) Types: https://github.com/LAMaglan/PokeFightSimulator/issues/9 (DONE) Modify stats based on level: https://github.com/LAMaglan/PokeFightSimulator/issues/10 - DONE Modify stats based on IV (individual values): https://github.com/LAMaglan/PokeFightSimulator/issues/35 - DONE Modify stats based on EV (effort values): https://github.com/LAMaglan/PokeFightSimulator/issues/36 - DONE Use special attack and defense: https://github.com/LAMaglan/PokeFightSimulator/issues/43 - DONE (but revise over time)

The general formula for each of the six (base) stats: Stat = ((2 x BaseStat + IV + (EV/4)) x Level / 100) Sometimes a constant is added to this Stat, but varies from game to game Note: adjust above accordingly (for instance, can consider less weight on Level)

Moveset (for much later): https://github.com/LAMaglan/PokeFightSimulator/issues/11

LAMaglan commented 3 months ago

All main improvements made, except for moveset