summaryrefslogtreecommitdiff
path: root/src/weather.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2022-02-27 08:43:59 -0800
committerGitHub <noreply@github.com>2022-02-27 08:43:59 -0800
commitea1aa9c0c5c3a4167912d1078fffdd5e69cbbe98 (patch)
tree1d3f29615f1683fae77ade7d8713e7bfe5a11c26 /src/weather.c
parent0dd38993f6a4383d6d5743fd0ae0abc01210ae25 (diff)
parenta5296a2f994a0f8e4421c4afd6bac1cedcfb72be (diff)
Merge pull request #97 from AnonymousRandomPerson/master
More attack AI decomp
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;
+}