summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris <f1ana@users.noreply.github.com>2026-03-29 12:46:47 -0400
committerGitHub <noreply@github.com>2026-03-29 16:46:47 +0000
commit5494a81eb14f135afd0115bead50c235d5b809b3 (patch)
tree79562967cbf6ad5192ed435da9e6e0e47d78683c
parentebea14f2974787626ea36873aa7592732f2f691c (diff)
Fix market sneak hook (#6440)
-rw-r--r--soh/soh/Enhancements/TimeSavers/MarketSneak.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/soh/soh/Enhancements/TimeSavers/MarketSneak.cpp b/soh/soh/Enhancements/TimeSavers/MarketSneak.cpp
index 2b688bc9e..a8b190bf1 100644
--- a/soh/soh/Enhancements/TimeSavers/MarketSneak.cpp
+++ b/soh/soh/Enhancements/TimeSavers/MarketSneak.cpp
@@ -2,11 +2,17 @@
extern "C" {
#include <variables.h>
+extern PlayState* gPlayState;
}
// RANDOTODO: Port the rest of the behavior for this enhancement here.
void BuildNightGuardMessage(uint16_t* textId, bool* loadFromMessageTable) {
+ // Other guards should not have their text overridden
+ if (gPlayState->sceneNum != SCENE_MARKET_ENTRANCE_NIGHT) {
+ return;
+ }
+
CustomMessage msg = CustomMessage("You look bored. Wanna go out for a walk?\x1B%gYes&No%w",
"Du siehst gelangweilt aus. Willst Du einen Spaziergang machen?\x1B%gJa&Nein%w",
"Tu as l'air de t'ennuyer. Tu veux aller faire un tour?\x1B%gOui&Non%w");