summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZoeyZolotova <zoey.zolotova@gmail.com>2022-01-17 05:14:09 +1100
committerGitHub <noreply@github.com>2022-01-16 18:14:09 +0000
commit94a2e5a3d72de0c610b65a2c205bf96baa08e596 (patch)
tree752accddc06ad35015e6181ad24c1c1c517745ae /src
parentb2a42dcf8bbb29f4527b97a3607aef592d1b2bed (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/overlays/actors/ovl_En_Ginko_Man/z_en_ginko_man.c8
1 files 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 a58710030..e830ae1bf 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);