LAMaglan / PokeFightSimulator

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

Is level still used in fight logic? #64

Open LAMaglan opened 3 months ago

LAMaglan commented 3 months ago

Moved stat_modifier to get_pokemon. However, "new" level is only set in battle function. Worst case, call stat_modifier per pokemon in battle function until can think of better solution

LAMaglan commented 3 months ago

Or, keep as is, but feed in level to get_pokemon? But then when running battle after changing level again, but not running endpoint that accesses get_pokemon, stat_modifier() will not be rerun.

Think about this