CurrentMapIsSecretBase

This commit is contained in:
PikalaxALT
2017-10-24 22:10:35 -04:00
parent 82ac40e619
commit e094e3db9b
2 changed files with 15 additions and 36 deletions

View File

@@ -347,3 +347,18 @@ void sub_80E916C(u8 taskId)
DestroyTask(taskId);
}
}
void sub_80E91F8(void)
{
CreateTask(sub_80E916C, 0);
fade_screen(1, 0);
}
bool8 CurrentMapIsSecretBase(void)
{
if (gSaveBlock1Ptr->location.mapGroup == MAP_GROUP_SECRET_BASE_RED_CAVE1 && (u8)gSaveBlock1Ptr->location.mapNum <= MAP_ID_SECRET_BASE_SHRUB4)
{
return TRUE;
}
return FALSE;
}