Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================================================
- /**
- * Get Unown Form Number
- *
- * @param[in] ppp pointer to box pokemon structure
- *
- * @retval 0-25:A-Z 26:! 27:?
- */
- //============================================================================================
- u8 PokePasoParaUnknownFormGet(POKEMON_PASO_PARAM *ppp)
- {
- return PokePasoParaGet(ppp,ID_PARA_form_no,NULL);
- // u32 annon_rnd=PokePasoParaGet(ppp,ID_PARA_personal_rnd,NULL);
- // return PokemonUnknownFormGet(annon_rnd);
- }
- //the form_no member has been added to the party information as of DS, so remove the method of obtaining from PID
- #if 0
- //============================================================================================
- /**
- * Get Unown Form Number
- *
- * @param[in] annon_rnd the unown's PID
- *
- * @retval 0-25:A-Z 26:! 27:?
- */
- //============================================================================================
- u8 PokemonUnknownFormGet(u32 annon_rnd)
- {
- return (((annon_rnd&0x03000000)>>18)|((annon_rnd&0x030000)>>12)|((annon_rnd&0x0300)>>6)|(annon_rnd&0x03))%28;
- }
- //============================================================================================
- /**
- * Get Unown form number from PID
- *
- * @param[in] form Unown form number
- *
- * @retval PID
- */
- //============================================================================================
- u32 PokemonPasoUnknownFormRndGet(int form)
- {
- return (((form&0x000000c0)<<18)|((form&0x00000030)<<12)|((form&0x0000000c)<<6)|(form&0x00000003));
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement