From ea77407371ef2f87a44fdfbff50745fe46157c08 Mon Sep 17 00:00:00 2001 From: Chase Manning <chase@manning.dev> Date: Sun, 26 Nov 2023 18:06:49 +0000 Subject: [PATCH] :sparkles: add selector for active pokemon index --- src/state/gameSlice.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/state/gameSlice.ts b/src/state/gameSlice.ts index b7c8cc6..bf09eee 100644 --- a/src/state/gameSlice.ts +++ b/src/state/gameSlice.ts @@ -429,4 +429,7 @@ export const selectCollectedItems = (state: RootState) => export const selectCompletedQuests = (state: RootState) => state.game.completedQuests; +export const selectActivePokemonIndex = (state: RootState) => + state.game.activePokemonIndex; + export default gameSlice.reducer;