diff --git a/modules/rpgmakerace.py b/modules/rpgmakerace.py index 924678c..29e65cd 100644 --- a/modules/rpgmakerace.py +++ b/modules/rpgmakerace.py @@ -3674,6 +3674,10 @@ def getSpeaker(speaker: str): if speaker == "": return ["", [0, 0]] + # Preflight count mode: skip translation and caching entirely + if 'PREFLIGHT_COUNT_MODE' in globals() and PREFLIGHT_COUNT_MODE: + return [speaker, [0, 0]] + if SPEAKER_PARSE_MODE: with _speakerCacheLock: if speaker in _speakerCache: diff --git a/modules/rpgmakermvmz.py b/modules/rpgmakermvmz.py index 1e3c4f8..9ff852f 100644 --- a/modules/rpgmakermvmz.py +++ b/modules/rpgmakermvmz.py @@ -3467,6 +3467,10 @@ def getSpeaker(speaker: str): if speaker == "": return ["", [0, 0]] + # Preflight count mode: skip translation and caching entirely + if 'PREFLIGHT_COUNT_MODE' in globals() and PREFLIGHT_COUNT_MODE: + return [speaker, [0, 0]] + if SPEAKER_PARSE_MODE: with _speakerCacheLock: if speaker in _speakerCache: