diff options
author | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-02-20 22:12:40 -0500 |
---|---|---|
committer | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-02-20 22:12:40 -0500 |
commit | e54b3427db443f40cc07da650f64c1573ae0d4a0 (patch) | |
tree | af85b2d6e19e500806df423fc742c2d3a4a49d9c /src | |
parent | 60a19d681cda14c4ebeab5d18a98e3b07a5e93a3 (diff) |
Decomped IsBossBattle()
Diffstat (limited to 'src')
-rw-r--r-- | src/dungeon_engine.c | 11 | ||||
-rw-r--r-- | src/status_checker.c | 2 |
2 files changed, 11 insertions, 2 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 diff --git a/src/status_checker.c b/src/status_checker.c index 7fbfc51..612e6cd 100644 --- a/src/status_checker.c +++ b/src/status_checker.c @@ -5,6 +5,7 @@ #include "constants/status.h" #include "constants/type.h" #include "constants/weather.h" +#include "dungeon_engine.h" #include "dungeon_global_data.h" #include "dungeon_pokemon_attributes.h" #include "dungeon_util.h" @@ -93,7 +94,6 @@ const u8 gDungeonCamouflageTypes[76] = { TYPE_ROCK }; -extern bool8 IsBossBattle(); extern u8 GetWeather(struct DungeonEntity*); extern bool8 HasQuarterHPOrLess(struct DungeonEntity*); extern bool8 IsTileGround(struct MapTile*); |