repeat meds
This commit is contained in:
parent
538733d798
commit
1885ee79dc
@ -1,8 +0,0 @@
|
||||
# This configuration file was automatically generated by Gitpod.
|
||||
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
|
||||
# and commit this file to your remote git repository to share the goodness with others.
|
||||
|
||||
tasks:
|
||||
- init: sh makerom
|
||||
|
||||
|
@ -4345,7 +4345,11 @@ void ItemUseCB_Medicine(u8 taskId, TaskFunc task)
|
||||
PlaySE(SE_SELECT);
|
||||
DisplayPartyMenuMessage(gText_WontHaveEffect, TRUE);
|
||||
ScheduleBgCopyTilemapToVram(2);
|
||||
if (gPartyMenu.menuType == PARTY_MENU_TYPE_FIELD)
|
||||
gTasks[taskId].func = Task_ReturnToChooseMonAfterText;
|
||||
else
|
||||
gTasks[taskId].func = task;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -4377,6 +4381,9 @@ void ItemUseCB_Medicine(u8 taskId, TaskFunc task)
|
||||
GetMedicineItemEffectMessage(item);
|
||||
DisplayPartyMenuMessage(gStringVar4, TRUE);
|
||||
ScheduleBgCopyTilemapToVram(2);
|
||||
if (gPartyMenu.menuType == PARTY_MENU_TYPE_FIELD && CheckBagHasItem(item, 1))
|
||||
gTasks[taskId].func = Task_ReturnToChooseMonAfterText;
|
||||
else
|
||||
gTasks[taskId].func = task;
|
||||
}
|
||||
}
|
||||
@ -4389,6 +4396,9 @@ static void Task_DisplayHPRestoredMessage(u8 taskId)
|
||||
DisplayPartyMenuMessage(gStringVar4, FALSE);
|
||||
ScheduleBgCopyTilemapToVram(2);
|
||||
HandleBattleLowHpMusicChange();
|
||||
if (gPartyMenu.menuType == PARTY_MENU_TYPE_FIELD && CheckBagHasItem(gSpecialVar_ItemId, 1))
|
||||
gTasks[taskId].func = Task_ReturnToChooseMonAfterText;
|
||||
else
|
||||
gTasks[taskId].func = Task_ClosePartyMenuAfterText;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user