Advertisement
Guest User

src/mix_mega.c

a guest
Aug 27th, 2021
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #include "mix_mega.h"
  2. #include "constants/species.h"
  3. #include "constants/items.h"
  4. #include "constants/moves.h"
  5. #include "constants/abilities.h"
  6. #include "graphics.h"
  7.  
  8. // mnm ROM data
  9. #include "data/mix_mega.h"
  10.  
  11. u8 ItemIdToMegaStoneId(u16 item)
  12. {
  13.  
  14. switch(item)
  15. {
  16.  
  17. case ITEM_ABOMASITE ... ITEM_VENUSAURITE:
  18. return item - ITEM_ABOMASITE;
  19. case ITEM_BLUE_ORB:
  20. return ITEM_BLUE_ORB;
  21. case ITEM_RED_ORB:
  22. return ITEM_RED_ORB;
  23. case ITEM_DAWN_NECRITE:
  24. return STONE_DAWN_NECRITE;
  25. case ITEM_DUSK_NECRITE:
  26. return STONE_DUSK_NECRITE;
  27. case ITEM_CRUCIBELLITE:
  28. return STONE_CRUCIBELLITE;
  29.  
  30. }
  31.  
  32. return STONES_COUNT;
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement