From 7c714bd14e68ee9528512108e8b2cbd7f9da46c7 Mon Sep 17 00:00:00 2001 From: AnonymousRandomPerson Date: Sun, 20 Feb 2022 22:30:05 -0500 Subject: Decomped GetWeather() --- src/weather.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/weather.c (limited to 'src/weather.c') 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; +} -- cgit v1.2.3