diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2022-01-20 15:26:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-20 15:26:19 -0800 |
commit | 408fe77d7b9440d7eb5d46eda5f920572d516d67 (patch) | |
tree | 38953616b74da130bd832635bed1c605d4b0e322 /src/dungeon_ai_item_weight.c | |
parent | 3cdde2a92a187d437dc7d24273177b59ab5b9511 (diff) | |
parent | c5cd6e137fbad180a21ec24a50fde76633db0c20 (diff) |
Merge pull request #93 from AnonymousRandomPerson/master
More AI decomp
Diffstat (limited to 'src/dungeon_ai_item_weight.c')
-rw-r--r-- | src/dungeon_ai_item_weight.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dungeon_ai_item_weight.c b/src/dungeon_ai_item_weight.c index 2f497cc..6c9669b 100644 --- a/src/dungeon_ai_item_weight.c +++ b/src/dungeon_ai_item_weight.c @@ -9,8 +9,7 @@ #include "dungeon_util.h" #include "moves.h" #include "number_util.h" - -extern bool8 HasNegativeStatus(struct DungeonEntity*); +#include "status_checks_1.h" u32 EvaluateItem(struct DungeonEntity *targetPokemon, struct ItemSlot *item, u32 itemTargetFlags) { @@ -96,7 +95,7 @@ u32 EvaluateItem(struct DungeonEntity *targetPokemon, struct ItemSlot *item, u32 } } } - if (itemWeight > 98) + if (itemWeight >= 99) { itemWeight = 99; } |