From 94a2e5a3d72de0c610b65a2c205bf96baa08e596 Mon Sep 17 00:00:00 2001 From: ZoeyZolotova Date: Mon, 17 Jan 2022 05:14:09 +1100 Subject: [PATCH] Update and fix a few comments for the banker. (#598) * Update and fix a few comments for the banker. * Change 'Link' to 'the player' and remove some actual message quotes. --- src/overlays/actors/ovl_En_Ginko_Man/z_en_ginko_man.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/overlays/actors/ovl_En_Ginko_Man/z_en_ginko_man.c b/src/overlays/actors/ovl_En_Ginko_Man/z_en_ginko_man.c index a58710030b..e830ae1bf9 100644 --- a/src/overlays/actors/ovl_En_Ginko_Man/z_en_ginko_man.c +++ b/src/overlays/actors/ovl_En_Ginko_Man/z_en_ginko_man.c @@ -512,7 +512,7 @@ void EnGinkoMan_SetupBankAward(EnGinkoMan* this) { void EnGinkoMan_BankAward(EnGinkoMan* this, GlobalContext* globalCtx) { if (Actor_HasParent(&this->actor, globalCtx)) { - // ? when would bank have a parent? + // Parent is the player when starting to receive the award this->actor.parent = NULL; EnGinkoMan_SetupBankAward2(this); } else if (this->curTextId == 0x45B) { // "Whats this, you already saved up 200?" @@ -535,7 +535,7 @@ void EnGinkoMan_SetupBankAward2(EnGinkoMan* this) { this->actionFunc = EnGinkoMan_BankAward2; } -// separate function to handle bank rewards... if the bank has a parent actor? might be unused +// separate function to handle bank rewards... called while the player is receiving the award void EnGinkoMan_BankAward2(EnGinkoMan* this, GlobalContext* globalCtx) { if (Actor_ProcessTalkRequest(&this->actor, &globalCtx->state)) { if (!(gSaveContext.weekEventReg[10] & 8) && (this->curTextId == 0x45B)) { @@ -543,11 +543,11 @@ void EnGinkoMan_BankAward2(EnGinkoMan* this, GlobalContext* globalCtx) { // it!" gSaveContext.weekEventReg[10] |= 8; func_801518B0(globalCtx, 0x47A, &this->actor); - this->curTextId = 0x47A; // "See! Doesn't it hold more than your old one? + this->curTextId = 0x47A; // Message after receiving reward for depositing 200 rupees. } else { Actor_ChangeAnimation(&this->skelAnime, animations, GINKO_SITTING); func_801518B0(globalCtx, 0x47B, &this->actor); - this->curTextId = 0x47B; // "Is that so? Think it over, little guy! So what are you gonna do?" + this->curTextId = 0x47B; // Message after receiving reward for depositing 1000 rupees. } EnGinkoMan_SetupDialogue(this);