summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorPhilip Dubé <159546+serprex@users.noreply.github.com>2026-06-12 05:09:24 +0000
committerGitHub <noreply@github.com>2026-06-12 05:09:24 +0000
commit739225d222d2dc3f70b3ad420f702814bd0e834d (patch)
tree035dc7302d03a74ad06092f6cd5acb6e75f281d9 /soh/src/code
parent7b01a7bf2eb9b9d7dfb29285ffcab98569f675f7 (diff)
Add 6th notch to text speed which makes text speed instant (#6694)
Helps frustration trying to read hints faster without skipping
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_message_PAL.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/soh/src/code/z_message_PAL.c b/soh/src/code/z_message_PAL.c
index ce09fe271..57e442676 100644
--- a/soh/src/code/z_message_PAL.c
+++ b/soh/src/code/z_message_PAL.c
@@ -15,6 +15,9 @@
#include "soh/SaveManager.h"
#include "soh/ResourceManagerHelpers.h"
+// SOH [Enhancement] Text Speed which fills whole box in one frame
+#define TEXT_SPEED_INSTANT 6
+
// #region SOH [NTSC] - Allows custom messages to work on japanese
static bool sDisplayNextMessageAsEnglish = false;
static u8 sLastLanguage = LANGUAGE_ENG;
@@ -1276,7 +1279,9 @@ void Message_DrawTextJPN(PlayState* play, Gfx** gfxP) {
}
}
- if (msgCtx->textDelay == 0) {
+ if (gTextSpeed >= TEXT_SPEED_INSTANT) {
+ msgCtx->textDrawPos = msgCtx->decodedTextLen + 1;
+ } else if (msgCtx->textDelay == 0) {
msgCtx->textDrawPos = i + gTextSpeed;
if (msgCtx->textDrawPos > msgCtx->decodedTextLen) {
msgCtx->textDrawPos = msgCtx->decodedTextLen + 1;
@@ -1626,7 +1631,9 @@ void Message_DrawText(PlayState* play, Gfx** gfxP) {
break;
}
}
- if (msgCtx->textDelay == 0) {
+ if (gTextSpeed >= TEXT_SPEED_INSTANT) {
+ msgCtx->textDrawPos = msgCtx->decodedTextLen + 1;
+ } else if (msgCtx->textDelay == 0) {
msgCtx->textDrawPos = i + gTextSpeed;
} else if (msgCtx->textDelayTimer == 0) {
msgCtx->textDrawPos = i + 1;