mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-12 14:38:42 -05:00
Correctly sets BEANS_BOUGHT
as a "flag" for the bean salesman
This commit is contained in:
parent
adf465c1a0
commit
c4de29b7f1
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user