diff options
author | Sahith Nallapareddy <sahith.reddy@gmail.com> | 2020-01-20 03:30:12 -0500 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2020-01-20 07:51:18 -0600 |
commit | 25df1460549f97f51c68f9feb205d324582491a2 (patch) | |
tree | dfc23914add99092cf81e32d322fcc0b91fa42aa /src | |
parent | a40f05490040350b8973728fdebe5a48360d4fac (diff) |
using item constant
Diffstat (limited to 'src')
-rw-r--r-- | src/pokemon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pokemon.c b/src/pokemon.c index 5a4e6df08..6dd09902d 100644 --- a/src/pokemon.c +++ b/src/pokemon.c @@ -5079,7 +5079,7 @@ bool8 PokemonUseItemEffects(struct Pokemon *mon, u16 item, u8 partyIndex, u8 mov friendship += var_34; if (var_34 > 0) { - if (GetMonData(mon, MON_DATA_POKEBALL, NULL) == 11) + if (GetMonData(mon, MON_DATA_POKEBALL, NULL) == ITEM_LUXURY_BALL) friendship++; if (GetMonData(mon, MON_DATA_MET_LOCATION, NULL) == GetCurrentRegionMapSectionId()) friendship++; @@ -5105,7 +5105,7 @@ bool8 PokemonUseItemEffects(struct Pokemon *mon, u16 item, u8 partyIndex, u8 mov friendship += var_34; if (var_34 > 0) { - if (GetMonData(mon, MON_DATA_POKEBALL, NULL) == 11) + if (GetMonData(mon, MON_DATA_POKEBALL, NULL) == ITEM_LUXURY_BALL) friendship++; if (GetMonData(mon, MON_DATA_MET_LOCATION, NULL) == GetCurrentRegionMapSectionId()) friendship++; @@ -5130,7 +5130,7 @@ bool8 PokemonUseItemEffects(struct Pokemon *mon, u16 item, u8 partyIndex, u8 mov friendship += var_34; if (var_34 > 0) { - if (GetMonData(mon, MON_DATA_POKEBALL, NULL) == 11) + if (GetMonData(mon, MON_DATA_POKEBALL, NULL) == ITEM_LUXURY_BALL) friendship++; if (GetMonData(mon, MON_DATA_MET_LOCATION, NULL) == GetCurrentRegionMapSectionId()) friendship++; |