diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2022-02-17 21:45:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 21:45:57 -0800 |
commit | 3555fb7c945ef5152910a84390ecbd1a38ea585d (patch) | |
tree | 4237c0ab086005ea05539b8de7c10b867eec43db /src/dungeon_ai_item_weight.c | |
parent | 1d64db5214b455bbd6f50ad6369ec04420e03984 (diff) | |
parent | ece475a4804a64790cfa86dfa0ba577a732adee8 (diff) |
Merge pull request #96 from AnonymousRandomPerson/master
Attack AI decomp
Diffstat (limited to 'src/dungeon_ai_item_weight.c')
-rw-r--r-- | src/dungeon_ai_item_weight.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dungeon_ai_item_weight.c b/src/dungeon_ai_item_weight.c index 6c9669b..0fe019f 100644 --- a/src/dungeon_ai_item_weight.c +++ b/src/dungeon_ai_item_weight.c @@ -5,7 +5,7 @@ #include "constants/targeting.h" #include "dungeon_ai_1.h" #include "dungeon_map_access.h" -#include "dungeon_pokemon_attributes_1.h" +#include "dungeon_pokemon_attributes.h" #include "dungeon_util.h" #include "moves.h" #include "number_util.h" @@ -85,11 +85,11 @@ u32 EvaluateItem(struct DungeonEntity *targetPokemon, struct ItemSlot *item, u32 { if (move->moveFlags & MOVE_FLAG_EXISTS) { - if (move->pp == 0) + if (move->PP == 0) { itemWeight += 30; } - if (move->pp != GetMoveMaxPP(move2)) + if (move->PP != GetMoveMaxPP(move2)) { itemWeight += 6; } |