🐛 fix encounter frequency

This commit is contained in:
Chase Manning 2023-10-12 15:36:24 +01:00
commit e0c2495713

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;
};