Use macros for summary windows

Other minor changes and fixes are included
This commit is contained in:
Phlosioneer 2019-03-03 16:50:51 -05:00
parent 043071ae12
commit 63e700af6c
5 changed files with 627 additions and 569 deletions

View File

@ -1,6 +1,6 @@
#ifndef GUARD_BATTLE_TENT_H
#define GUARD_BATTLE_TENT_H
bool8 sub_81B9E94(void);
bool8 InSlateportBattleTent(void);
#endif //GUARD_BATTLE_TENT_H

View File

@ -62,7 +62,7 @@ u8 sub_81B1B5C(const u8* str, u8 b);
bool8 sub_81B1BD4(void);
void sub_81B1F18(u8 taskId, u8 slot, s8 c, s16 HPDifference, TaskFunc func);
u8 pokemon_ailments_get_primary(u32 status);
u8 sub_81B205C(struct Pokemon *mon);
u8 GetMonAilment(struct Pokemon *mon);
void display_pokemon_menu_message(u32 stringID);
void sub_81B47E0(u8 taskId);
bool8 FieldCallback_PrepareFadeInFromMenu(void);

View File

@ -269,7 +269,7 @@ static void sub_81B9E88(void)
DoBattleFactorySwapScreen();
}
bool8 sub_81B9E94(void)
bool8 InSlateportBattleTent(void)
{
return gMapHeader.regionMapSectionId == MAPSEC_SLATEPORT_CITY
&& (gMapHeader.mapLayoutId == LAYOUT_BATTLE_TENT_CORRIDOR || gMapHeader.mapLayoutId == LAYOUT_BATTLE_TENT_BATTLE_ROOM);

View File

@ -2936,7 +2936,7 @@ u8 pokemon_ailments_get_primary(u32 status)
return AILMENT_NONE;
}
u8 sub_81B205C(struct Pokemon *mon)
u8 GetMonAilment(struct Pokemon *mon)
{
u8 ailment;
@ -3355,7 +3355,7 @@ static void DisplayPartyPokemonLevelCheck(struct Pokemon *mon, struct Struct203C
{
if (GetMonData(mon, MON_DATA_SPECIES) != SPECIES_NONE)
{
u8 ailment = sub_81B205C(mon);
u8 ailment = GetMonAilment(mon);
if (ailment == AILMENT_NONE || ailment == AILMENT_PKRS)
{
if (c != 0)
@ -5183,7 +5183,7 @@ static void party_menu_link_mon_status_condition_object(u16 species, u8 status,
static void party_menu_get_status_condition_and_update_object(struct Pokemon *mon, struct Struct203CEDC *ptr)
{
party_menu_update_status_condition_object(sub_81B205C(mon), ptr);
party_menu_update_status_condition_object(GetMonAilment(mon), ptr);
}
static void party_menu_update_status_condition_object(u8 status, struct Struct203CEDC *ptr)

File diff suppressed because it is too large Load Diff