mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-22 16:18:50 -05:00
Fix bean salesman bug (#4410)
This commit is contained in:
parent
4dbb86e980
commit
eafe15ddf2
@ -554,18 +554,6 @@ void CheckTrackerTransition(uint32_t sceneNum) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheckTrackerFrame() {
|
|
||||||
if (!GameInteractor::IsSaveLoaded()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// TODO: Move to OnAmmoChange hook once it gets added.
|
|
||||||
if (!OTRGlobals::Instance->gRandoContext->GetItemLocation(RC_ZR_MAGIC_BEAN_SALESMAN)->HasObtained()) {
|
|
||||||
if (BEANS_BOUGHT >= 10) {
|
|
||||||
SetCheckCollected(RC_ZR_MAGIC_BEAN_SALESMAN);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void CheckTrackerItemReceive(GetItemEntry giEntry) {
|
void CheckTrackerItemReceive(GetItemEntry giEntry) {
|
||||||
if (!GameInteractor::IsSaveLoaded() || vector_contains_scene(skipScenes, gPlayState->sceneNum)) {
|
if (!GameInteractor::IsSaveLoaded() || vector_contains_scene(skipScenes, gPlayState->sceneNum)) {
|
||||||
return;
|
return;
|
||||||
@ -1738,7 +1726,6 @@ void CheckTrackerWindow::InitElement() {
|
|||||||
Teardown();
|
Teardown();
|
||||||
});
|
});
|
||||||
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnItemReceive>(CheckTrackerItemReceive);
|
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnItemReceive>(CheckTrackerItemReceive);
|
||||||
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnGameFrameUpdate>(CheckTrackerFrame);
|
|
||||||
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnTransitionEnd>(CheckTrackerTransition);
|
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnTransitionEnd>(CheckTrackerTransition);
|
||||||
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnShopSlotChange>(CheckTrackerShopSlotChange);
|
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnShopSlotChange>(CheckTrackerShopSlotChange);
|
||||||
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnSceneFlagSet>(CheckTrackerSceneFlagSet);
|
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnSceneFlagSet>(CheckTrackerSceneFlagSet);
|
||||||
|
Loading…
Reference in New Issue
Block a user