Skip to content

Commit

Permalink
foundation to accept route id argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedrigl committed Dec 10, 2024
1 parent d5de573 commit 3fd47b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/Mapper/Mapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ export const Mapper = ({ pokemonList }) => {
selectedTrainer={selectedTrainer}
setSelectedTrainer={setSelectedTrainer}
openTrainerModal={openTrainerModal}
routeId={selectedZoneId}
/>
</div>
<SearchBar
Expand Down
2 changes: 1 addition & 1 deletion src/components/Mapper/TabPanel/EncountersPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { PokemonAccordion } from '../../Pokedex2/PokemonAccordion';
import EncounterTable from '../Encounters/EncounterTable';
import ".././style.css"

const EncountersPanel = ({ encOptions, handleOptionChange, encounterList, pokemon }) => {
const EncountersPanel = ({ encOptions, handleOptionChange, encounterList, pokemon, routeId }) => {
const { colorMode, setColorMode } = useColorMode();
const modeChangeTextColor = colorMode === "dark" ? "#F5FBF5" : "#000000";
const boolOptions = Object.keys(encOptions).filter((key) => typeof encOptions[key] === 'boolean');
Expand Down
2 changes: 2 additions & 0 deletions src/components/Mapper/TabPanel/MapperTabPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const MapperTabPanel = ({
selectedTrainer,
setSelectedTrainer,
openTrainerModal,
routeId
}) => {
return (
<PokemonTabPanel tabNames={["Encounters", "Trainers", "Items", "Shops"]}>
Expand All @@ -24,6 +25,7 @@ export const MapperTabPanel = ({
handleOptionChange={handleOptionChange}
encounterList={encounterList}
pokemon={pokemonName}
routeId={routeId}
/>
<TrainersPanel
selectedTrainer={selectedTrainer}
Expand Down
1 change: 1 addition & 0 deletions src/utils/dex/encountersConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const ENC_TYPES = {
"ii_mons": "Good Rod",
"sugoi_mons": "Super Rod",
};
export const CAVE_IDS = [264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 292, 293, 294, 295, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 255, 256, 195, 196, 244, 245, 246, 247, 248, 249, 225, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 299, 300, 301, 302, 303, 304];

export const GRASS = ENC_TYPES["ground_mons"];
export const ROD_ENC = [
Expand Down

0 comments on commit 3fd47b9

Please sign in to comment.