mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-09-22 22:57:14 +00:00
🐛 fix encounter frequency
This commit is contained in:
parent
26d430e879
commit
075d7f88b4
2 changed files with 1 additions and 2 deletions
1
TODO.md
1
TODO.md
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue