summaryrefslogtreecommitdiff
path: root/src/weather.c
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-02-20 22:30:05 -0500
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-02-20 22:30:05 -0500
commit7c714bd14e68ee9528512108e8b2cbd7f9da46c7 (patch)
tree7e130c5dc54870380ffd1186c976299d385e9774 /src/weather.c
parente54b3427db443f40cc07da650f64c1573ae0d4a0 (diff)
Decomped GetWeather()
Diffstat (limited to 'src/weather.c')
-rw-r--r--src/weather.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/weather.c b/src/weather.c
new file mode 100644
index 0000000..3989790
--- /dev/null
+++ b/src/weather.c
@@ -0,0 +1,16 @@
+#include "global.h"
+#include "weather.h"
+
+#include "constants/item.h"
+#include "constants/weather.h"
+#include "dungeon_global_data.h"
+#include "dungeon_items.h"
+
+u8 GetWeather(struct DungeonEntity* pokemon)
+{
+ if (pokemon != NULL && HasItem(pokemon, ITEM_ID_WEATHER_BAND))
+ {
+ return WEATHER_CLEAR;
+ }
+ return gDungeonGlobalData->weather;
+}