diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2017-10-24 22:10:35 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2017-10-24 22:10:35 -0400 |
commit | e094e3db9b8e4ab2b97085ac7048c9b6c327ed1f (patch) | |
tree | 8413102842f09c5649941ce52d594335c46701e7 /src | |
parent | 82ac40e6197d96f59215c0544f73b8e795ed5c64 (diff) |
CurrentMapIsSecretBase
Diffstat (limited to 'src')
-rw-r--r-- | src/secret_base.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/secret_base.c b/src/secret_base.c index 7f868720b..6f888eb4b 100644 --- a/src/secret_base.c +++ b/src/secret_base.c @@ -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; +} |