mirror of
https://github.com/pret/pmd-red.git
synced 2026-08-03 09:10:20 -05:00
20 lines
551 B
C
20 lines
551 B
C
#include "global.h"
|
|
#include "code_80A26CC.h"
|
|
#include "event_flag.h"
|
|
|
|
bool8 sub_8099328(u8 *dungeonId) {
|
|
s16 script_disc;
|
|
DungeonInfo* dungeonInfo;
|
|
|
|
script_disc = GetScriptVarValue(NULL, DUNGEON_ENTER);
|
|
if (script_disc == 0x51) {
|
|
script_disc = GetScriptVarValue(NULL, DUNGEON_ENTER_INDEX);
|
|
dungeonInfo = (DungeonInfo *)GetDungeonInfo_80A2608(script_disc);
|
|
if(dungeonInfo->dungeonIndex < 0x3f) {
|
|
*dungeonId = dungeonInfo->dungeonIndex;
|
|
return TRUE;
|
|
}
|
|
}
|
|
return FALSE;
|
|
}
|