mirror of
https://github.com/GoodStartLabs/AI_Diplomacy.git
synced 2026-04-29 17:35:18 +00:00
FIX: Instant mode wouldn't disable on toggle.
This commit is contained in:
parent
1a78cfdb5c
commit
9695a64d65
5 changed files with 35 additions and 134 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue