Re-enabling Dream Dex

This commit is contained in:
GearsProgress
2026-08-27 17:51:37 -04:00
parent c454b2a6e2
commit 1afb528c73
6 changed files with 14 additions and 3 deletions

View File

@@ -5,6 +5,7 @@
#include "button_menu.h"
#include "pokemon_data.h"
#include "libraries/Pokemon-Gen3-to-Gen-X/include/save.h"
#include "script_array.h"
byte save_data_array[SAVE_DATA_SIZE];
@@ -31,6 +32,10 @@ bool is_caught(int dex_num)
void set_caught(int dex_num)
{
if (!is_caught(dex_num))
{
newPkmn |= true;
}
save_data_array[CAUGHT_DATA + (dex_num / 8)] = save_data_array[CAUGHT_DATA + (dex_num / 8)] | (1 << (dex_num % 8));
}