Correctly sets BEANS_BOUGHT as a "flag" for the bean salesman

This commit is contained in:
Christopher Leggett 2022-08-24 17:24:50 -04:00
parent adf465c1a0
commit c4de29b7f1
No known key found for this signature in database
GPG Key ID: 7093AE5FF7037D79
2 changed files with 1 additions and 1 deletions

View File

@ -2181,7 +2181,6 @@ u16 Randomizer_Item_Give(GlobalContext* globalCtx, GetItemEntry giEntry) {
if (gSaveContext.inventory.items[SLOT(ITEM_BEAN)] == ITEM_NONE) {
INV_CONTENT(ITEM_BEAN) = ITEM_BEAN;
AMMO(ITEM_BEAN) = 10;
BEANS_BOUGHT = 10;
}
}

View File

@ -157,6 +157,7 @@ void EnMs_Sell(EnMs* this, GlobalContext* globalCtx) {
if (gSaveContext.n64ddFlag && Randomizer_GetSettingValue(RSK_SHUFFLE_MAGIC_BEANS)) {
GiveItemEntryFromActor(&this->actor, globalCtx,
Randomizer_GetItemFromKnownCheck(RC_ZR_MAGIC_BEAN_SALESMAN, GI_BEAN), 90.0f, 10.0f);
BEANS_BOUGHT = 10;
} else {
func_8002F434(&this->actor, globalCtx, GI_BEAN, 90.0f, 10.0f);
}