Skip to content

Commit

Permalink
Implemented Speedy Nurse and fixed Badge Mart Items
Browse files Browse the repository at this point in the history
  • Loading branch information
laserXdolphin committed Jul 17, 2024
1 parent b5c241d commit f999be5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
13 changes: 10 additions & 3 deletions data/scripts/pkmn_center_nurse.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ Common_EventScript_PkmnCenterNurse::
setvar VAR_0x8004, 0
specialvar VAR_RESULT, CountPlayerTrainerStars
goto_if_eq VAR_RESULT, 4, EventScript_PkmnCenterNurse_GoldCard
msgbox gText_WouldYouLikeToRestYourPkmn, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, EventScript_PkmnCenterNurse_HealPkmn
goto_if_eq VAR_RESULT, NO, EventScript_PkmnCenterNurse_Goodbye
goto EventScript_PkmnCenterNurse_HealPkmn
end

EventScript_PkmnCenterNurse_Goodbye::
Expand Down Expand Up @@ -59,6 +57,7 @@ EventScript_PkmnCenterNurse_ReturnPkmn::
applymovement VAR_0x800B, Movement_PkmnCenterNurse_Bow
waitmovement 0
message gText_WeHopeToSeeYouAgain
goto EventScript_PkmnCenterNurse_PlayerTurn
return

EventScript_PkmnCenterNurse_ReturnPkmn2::
Expand All @@ -67,6 +66,7 @@ EventScript_PkmnCenterNurse_ReturnPkmn2::
applymovement VAR_0x800B, Movement_PkmnCenterNurse_Bow
waitmovement 0
message gText_WeHopeToSeeYouAgain2
goto EventScript_PkmnCenterNurse_PlayerTurn
return

EventScript_PkmnCenterNurse_PlayerWaitingInUnionRoom::
Expand Down Expand Up @@ -120,3 +120,10 @@ Movement_PkmnCenterNurse_Bow:
nurse_joy_bow
delay_4
step_end

EventScript_PkmnCenterNurse_PlayerTurn::
closemessage
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceDown
waitmovement 0
release
end
6 changes: 3 additions & 3 deletions src/shop.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,11 +568,11 @@ static void SetShopItemsForSale(const u16 *items)
u8 badgeCount = GetNumberOfBadges();

if (items == NULL)
gMartInfo.itemList = sShopInventories[badgeCount];
sMartInfo.itemList = sShopInventories[badgeCount];
else
gMartInfo.itemList = items;
sMartInfo.itemList = items;

gMartInfo.itemCount = 0;
sMartInfo.itemCount = 0;
// Read items until ITEM_NONE / DECOR_NONE is reached
while (sMartInfo.itemList[i])
{
Expand Down

0 comments on commit f999be5

Please sign in to comment.