summaryrefslogtreecommitdiff
path: root/src/dungeon_engine.c
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-02-20 22:12:40 -0500
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-02-20 22:12:40 -0500
commite54b3427db443f40cc07da650f64c1573ae0d4a0 (patch)
treeaf85b2d6e19e500806df423fc742c2d3a4a49d9c /src/dungeon_engine.c
parent60a19d681cda14c4ebeab5d18a98e3b07a5e93a3 (diff)
Decomped IsBossBattle()
Diffstat (limited to 'src/dungeon_engine.c')
-rw-r--r--src/dungeon_engine.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/dungeon_engine.c b/src/dungeon_engine.c
index dd25441..20c3a50 100644
--- a/src/dungeon_engine.c
+++ b/src/dungeon_engine.c
@@ -3,6 +3,15 @@
#include "constants/dungeon.h"
#include "dungeon_global_data.h"
+bool8 IsBossBattle()
+{
+ if (gDungeonGlobalData->bossBattleIndex != 0 && gDungeonGlobalData->bossBattleIndex <= 0x31)
+ {
+ return TRUE;
+ }
+ return FALSE;
+}
+
bool8 IsFixedDungeon()
{
if (gDungeonGlobalData->tileset > DUNGEON_OUT_ON_RESCUE)
@@ -10,4 +19,4 @@ bool8 IsFixedDungeon()
return TRUE;
}
return FALSE;
-}
+} \ No newline at end of file