updated function name for deposit item amount to pc

This commit is contained in:
pokballs 2019-06-29 15:47:48 -07:00 committed by huderlem
parent c3733f4b95
commit 717c3350c4

View file

@ -81,7 +81,7 @@ void TaskCloseBagMenu_2(u8);
u8 AddItemMessageWindow(u8); u8 AddItemMessageWindow(u8);
void bag_menu_RemoveBagItem_message_window(u8); void bag_menu_RemoveBagItem_message_window(u8);
void set_callback3_to_bag(u8); void set_callback3_to_bag(u8);
void sub_81ABC54(u8, s16); void PrintItemDepositAmount(u8, s16);
u8 BagMenu_AddWindow(u8); u8 BagMenu_AddWindow(u8);
u8 GetSwitchBagPocketDirection(void); u8 GetSwitchBagPocketDirection(void);
void SwitchBagPocket(u8, s16, u16); void SwitchBagPocket(u8, s16, u16);
@ -1050,10 +1050,10 @@ void BagMenu_InitListsMenu(u8 taskId)
void sub_81ABC3C(u8 a) void sub_81ABC3C(u8 a)
{ {
sub_81ABC54(BagMenu_AddWindow(a), 1); PrintItemDepositAmount(BagMenu_AddWindow(a), 1);
} }
void sub_81ABC54(u8 a, s16 b) void PrintItemDepositAmount(u8 a, s16 b)
{ {
u8 r3 = (gBagPositionStruct.pocket == BERRIES_POCKET) ? 3 : 2; u8 r3 = (gBagPositionStruct.pocket == BERRIES_POCKET) ? 3 : 2;
ConvertIntToDecimalStringN(gStringVar1, b, 2, r3); ConvertIntToDecimalStringN(gStringVar1, b, 2, r3);
@ -1704,7 +1704,7 @@ void Task_ChooseHowManyToToss(u8 taskId)
if (AdjustQuantityAccordingToDPadInput(&data[8], data[2]) == TRUE) if (AdjustQuantityAccordingToDPadInput(&data[8], data[2]) == TRUE)
{ {
sub_81ABC54(gBagMenu->unk817, data[8]); PrintItemDepositAmount(gBagMenu->unk817, data[8]);
} }
else if (gMain.newKeys & A_BUTTON) else if (gMain.newKeys & A_BUTTON)
{ {
@ -2056,7 +2056,7 @@ void sub_81ADA7C(u8 taskId)
if (AdjustQuantityAccordingToDPadInput(&data[8], data[2]) == TRUE) if (AdjustQuantityAccordingToDPadInput(&data[8], data[2]) == TRUE)
{ {
sub_81ABC54(gBagMenu->unk817, data[8]); PrintItemDepositAmount(gBagMenu->unk817, data[8]);
} }
else if (gMain.newKeys & A_BUTTON) else if (gMain.newKeys & A_BUTTON)
{ {