summaryrefslogtreecommitdiff
path: root/src/type_effectiveness.c
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-03-05 00:00:01 -0500
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-03-10 22:32:17 -0500
commitf7a73281cfdfe36af057d1700cc046b80da98f70 (patch)
tree59fdbec6129b7257b134d057bf27422d4952cd74 /src/type_effectiveness.c
parent9a4864c1cf8c0a6da847f3b8977aaca23b712a5a (diff)
Decomped GetFlashFireStatus()
Diffstat (limited to 'src/type_effectiveness.c')
-rw-r--r--src/type_effectiveness.c8
1 files changed, 2 insertions, 6 deletions
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;
}