Skip to content

Commit 742e0ab

Browse files
committed
Make the AI Seq No visible to the search and details
1 parent efcd0b1 commit 742e0ab

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

plugins/pokedex-data-plugin/dex/moves.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ function getMoveProperties(moveId = 0, mode = GAMEDATA2, extendedDetails = false
133133
let statusEffects = null;
134134
let critRatio = null;
135135
let statChanges = null;
136+
let aiSeqNo = null;
136137

137138
if (extendedDetails) {
138139
const moveFlags = move.flags;
@@ -162,6 +163,8 @@ function getMoveProperties(moveId = 0, mode = GAMEDATA2, extendedDetails = false
162163
{statType: STATS_TO_CHANGE[move.rankEffType2], stages: move.rankEffValue2, rate: move.rankEffPer2},
163164
{statType: STATS_TO_CHANGE[move.rankEffType3], stages: move.rankEffValue3, rate: move.rankEffPer3},
164165
];
166+
167+
aiSeqNo = move.aiSeqNo;
165168
}
166169

167170
return {
@@ -187,6 +190,7 @@ function getMoveProperties(moveId = 0, mode = GAMEDATA2, extendedDetails = false
187190
hpRecover: move.hpRecoverRatio,
188191
target: MOVE_TARGETING[move.target],
189192
moveFlags: flagArray,
193+
aiSeqNo,
190194
})
191195
};
192196
}

src/components/MoveDex/MoveListPageContent.jsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
FormGroup,
2121
FormControlLabel,
2222
switchClasses,
23+
TextField,
2324
} from '@mui/material';
2425
import CloseIcon from '@mui/icons-material/Close';
2526

@@ -78,6 +79,7 @@ export const defaultSearchTable = {
7879
healDamage: { label: null, value: null },
7980
hpRecover: { label: null, value: null },
8081
target: { label: null, value: null },
82+
aiSeqNo: { label: null, value: null },
8183
moveFlags: [
8284
{ label: null, value: null },
8385
{ label: null, value: null },
@@ -847,6 +849,19 @@ const MoveFilterDrawer = ({
847849
})}
848850
</Box>
849851
</PokemonAccordion>
852+
{/* TODO DEV ONLY FEATURE!!! REMOVE BEFORE SENDING TO MAIN!!! */}
853+
<PokemonAccordion title="AI Sequence Number">
854+
<TextField
855+
id="ai-sequence-number"
856+
label="AI Sequence Number"
857+
variant="outlined"
858+
type="number"
859+
value={searchTable.aiSeqNo?.value ?? ""}
860+
onChange={(event) => {
861+
handleChange("aiSeqNo", {value: parseInt(event.target.value), label: event.target.value});
862+
}}
863+
/>
864+
</PokemonAccordion>
850865
<PokemonAccordion title={"Flags"}>
851866
<Typography display="flex" justifyContent="center">Click twice to search the opposite.</Typography>
852867
<Divider variant="middle" sx={{

src/components/MoveDex/MovePageContent.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ const ExtendedMoveContainer = ({ gameMode, move }) => {
131131
<Typography>{`Damage Healed: ${move.healDamage}%`}</Typography>
132132
<Typography>{`HP Recovery: ${move.hpRecover}%`}</Typography>
133133
<Typography>{`Targeting: ${move.target}`}</Typography>
134+
<Typography>{`AI Seq No: ${move.aiSeqNo}`}</Typography>
134135
</CardContent>
135136
</Card>
136137
<Card sx={{gridArea: "d"}} variant='outlined'>

0 commit comments

Comments
 (0)