mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-09-08 16:57:14 +00:00
🐛 fix quest triggering twice
This commit is contained in:
parent
3f374836ee
commit
62897456ac
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@ import { MapId } from "../maps/map-types";
|
||||||
import useBadges from "./use-badges";
|
import useBadges from "./use-badges";
|
||||||
import {
|
import {
|
||||||
completeQuest,
|
completeQuest,
|
||||||
|
moveLeft,
|
||||||
selectCompletedQuests,
|
selectCompletedQuests,
|
||||||
selectPos,
|
selectPos,
|
||||||
setPos,
|
setPos,
|
||||||
|
@ -47,6 +48,7 @@ const useQuests = () => {
|
||||||
"Follow me!",
|
"Follow me!",
|
||||||
],
|
],
|
||||||
action: () => {
|
action: () => {
|
||||||
|
dispatch(moveLeft());
|
||||||
dispatch(setBlackScreen(true));
|
dispatch(setBlackScreen(true));
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
dispatch(setPos({ x: 14, y: 19 }));
|
dispatch(setPos({ x: 14, y: 19 }));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue