FIX: Instant mode wouldn't disable on toggle.

This commit is contained in:
Tyler Marques 2025-06-03 12:08:39 -07:00
parent 1a78cfdb5c
commit 9695a64d65
No known key found for this signature in database
GPG key ID: CB99EDCF41D3016F
5 changed files with 35 additions and 134 deletions

View file

@ -4,7 +4,6 @@ import { config } from "../config";
import { advanceToNextPhase } from "../phase";
import { getPowerDisplayName, getAllPowerDisplayNames } from '../utils/powerNames';
import { PowerENUM } from '../types/map';
import { isInstantChatEnabled } from '../debug/instantMode';
//TODO: Sometimes the LLMs use lists, and they don't work in the chats. The just appear as bullets within a single line.
@ -181,7 +180,7 @@ export function updateChatWindows(phase: any, stepMessages = false) {
gameState.messagesPlaying = false;
// If instant chat is enabled during stepwise mode, immediately proceed to next phase logic
if (stepMessages && isInstantChatEnabled()) {
if (stepMessages && config.isInstantMode) {
// Trigger the same logic as the end of stepwise message display
if (gameState.isPlaying && !gameState.isSpeaking) {
if (gameState.gameData && gameState.gameData.phases) {