🐛 fix encounter frequency

This commit is contained in:
Chase Manning 2023-10-12 14:09:17 +01:00
commit 075d7f88b4
2 changed files with 1 additions and 2 deletions

View file

@ -4,7 +4,6 @@
- Add support for app refreshing when there is an update
- We still have an update menu
- Encounter frequency seems off
- Add a block for continuing unfinished content
- Add support for invisible items
- Finish mt moon map

View file

@ -8,7 +8,7 @@ import { PokemonEncounterType } from "../state/state-types";
import getPokemonEncounter from "../app/pokemon-encounter-helper";
const shouldEncounter = (rate: number) => {
const random = Math.random() * 100;
const random = Math.random() * 255;
return random < rate;
};