summaryrefslogtreecommitdiff
path: root/src/status.c
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-03-05 00:00:01 -0500
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-03-10 22:32:17 -0500
commitf7a73281cfdfe36af057d1700cc046b80da98f70 (patch)
tree59fdbec6129b7257b134d057bf27422d4952cd74 /src/status.c
parent9a4864c1cf8c0a6da847f3b8977aaca23b712a5a (diff)
Decomped GetFlashFireStatus()
Diffstat (limited to 'src/status.c')
-rw-r--r--src/status.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/status.c b/src/status.c
new file mode 100644
index 0000000..dc8a812
--- /dev/null
+++ b/src/status.c
@@ -0,0 +1,19 @@
+#include "global.h"
+#include "status.h"
+
+#include "constants/ability.h"
+#include "dungeon_pokemon_attributes.h"
+#include "dungeon_util.h"
+
+u8 GetFlashFireStatus(struct DungeonEntity *pokemon)
+{
+ if (!EntityExists(pokemon) || !HasAbility(pokemon, ABILITY_FLASH_FIRE))
+ {
+ return FLASH_FIRE_STATUS_NONE;
+ }
+ if (pokemon->entityData->flashFireBoost > 1)
+ {
+ return FLASH_FIRE_STATUS_MAXED;
+ }
+ return FLASH_FIRE_STATUS_NOT_MAXED;
+}