diff options
| author | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-01-20 18:12:17 -0500 |
|---|---|---|
| committer | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-01-20 18:12:17 -0500 |
| commit | c5cd6e137fbad180a21ec24a50fde76633db0c20 (patch) | |
| tree | 38953616b74da130bd832635bed1c605d4b0e322 /src | |
| parent | 74d89a6fe4615b4c463852e98c2ea43bb1f6bf00 (diff) | |
Decomped IsSleeping()
-Function provided by SethBarberee.
Diffstat (limited to 'src')
| -rw-r--r-- | src/status_checks_1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/status_checks_1.c b/src/status_checks_1.c index 32ed6bf..9d0bfe8 100644 --- a/src/status_checks_1.c +++ b/src/status_checks_1.c @@ -42,3 +42,14 @@ bool8 HasNegativeStatus(struct DungeonEntity *pokemon) } return FALSE; } + +bool8 IsSleeping(struct DungeonEntity *pokemon) +{ + if (pokemon->entityData->sleepStatus != SLEEP_STATUS_SLEEP && + pokemon->entityData->sleepStatus != SLEEP_STATUS_NAPPING && + pokemon->entityData->sleepStatus != SLEEP_STATUS_NIGHTMARE) + { + return FALSE; + } + return TRUE; +} |
