From f7a73281cfdfe36af057d1700cc046b80da98f70 Mon Sep 17 00:00:00 2001 From: AnonymousRandomPerson Date: Sat, 5 Mar 2022 00:00:01 -0500 Subject: Decomped GetFlashFireStatus() --- src/type_effectiveness.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/type_effectiveness.c') diff --git a/src/type_effectiveness.c b/src/type_effectiveness.c index efc1ef9..8a9ee04 100644 --- a/src/type_effectiveness.c +++ b/src/type_effectiveness.c @@ -7,15 +7,12 @@ #include "dungeon_global_data.h" #include "dungeon_pokemon_attributes.h" #include "dungeon_util.h" +#include "status.h" #include "type_chart.h" #include "weather.h" -#define FLASH_FIRE_STATUS_NONE 0 - u32 gTypeEffectivenessMultipliers[] = {0, 1, 2, 4}; -extern u8 GetFlashFireStatus(struct DungeonEntity *pokemon); - s32 WeightWeakTypePicker(struct DungeonEntity *user, struct DungeonEntity *target, u8 moveType) { s32 weight = 1; @@ -79,8 +76,7 @@ s32 WeightWeakTypePicker(struct DungeonEntity *user, struct DungeonEntity *targe if (weight == 0) { // BUG: If the Pokémon's first type resists the move, the second type is ignored. - // This can cause type effectiveness to be calculated incorrectly - // if the first type resists the move and the second type is weak to the move. + // This calculates type effectiveness incorrectly if the first type resists the move and the second type is weak to the move. // For example, a Fire-type move is considered not very effective against a Rock/Bug-type like Anorith. return 2; } -- cgit v1.2.3