Skip to content

Commit

Permalink
Add patch to ensure 200 bank reward isn't given multiple times. (#56)
Browse files Browse the repository at this point in the history
* Add patch to ensure 200 bank reward isn't given multiple times.

* We should be checking if our rupee count is greater than the 1000 reward.
  • Loading branch information
PhlexPlexico authored Mar 8, 2024
1 parent 183b3f7 commit ea94215
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/source/rnd/item_override.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ namespace rnd {
} else if (actorId == game::act::Id::EnKitan) {
getItemId = incomingNegative ? -0x03 : 0x03;
} else if (actorId == game::act::Id::EnGinkoMan) {
if (gExtSaveData.givenItemChecks.enGinkoManGivenItem == 1) {
// Check to see if we're not getting a repeat reward.
u16 bankRupeeCount = game::GetCommonData().save.bank_rupee_count;
if (gExtSaveData.givenItemChecks.enGinkoManGivenItem == 1 && bankRupeeCount >= 1000) {
getItemId = incomingNegative ? -0x03 : 0x03;
}
}
Expand Down

0 comments on commit ea94215

Please sign in to comment.