pokemon_gender.h 727 B

12345678910111213141516171819202122
  1. #ifndef POKEMON_GENDER_H
  2. #define POKEMON_GENDER_H
  3. #pragma once
  4. /* The gender ratio is a bit value, and if the ATK_IV is less than or equal to
  5. * the gender ratio, the gender is female.
  6. *
  7. * A ratio of 0xff means gender is unknown.
  8. * A ratio of 0x00 is annoyingly special. It either means that pokemon can be
  9. * male only -OR- there is a very small chance the pokemon is female. The
  10. * male only pokemon need to be specifically checked for.
  11. */
  12. const char* select_gender_is_static(PokemonData* pdata, uint8_t ratio);
  13. /* This will return a pointer to a string of the pokemon's current gender */
  14. char* select_gender_get(PokemonData* pdata);
  15. void select_gender_scene_on_enter(void* context);
  16. #endif // POKEMON_GENDER_H