방 설정 "컴퓨터 채팅": 컴퓨터가 혼자 말하는 건 방장이 켤 때만(기본 끄기), 마피아는 항상 켜짐

- RoomConfig/RoomView.botChat, config 메시지에 botChat. 새 방·옛 방 모두 끄기.
- BotBrain: 꺼져 있으면 도발·반응·대답·시작 인사·끝 인사 안 함, 모델 미리 올리기도 안 함.
  바퀴벌레 포커 진짜/블러핑 판단은 그대로, 한마디만 뺌.
- BOT_CHAT_REQUIRED(마피아): 설정과 상관없이 항상 켜짐, 설정 칸에 "항상 켜짐" 표시.
- 대기실 설정에 컴퓨터 채팅 켜기/끄기(컴퓨터 상대가 있는 게임만).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-12 21:59:30 +09:00
parent bd179c7a43
commit 2ec622ebf6
9 changed files with 113 additions and 13 deletions

View File

@@ -56,6 +56,14 @@ export const PRACTICE_PLAYERS: Readonly<Record<string, number>> = { mafia: 6 };
export const botsAllowed = (gameId: string): boolean => BOT_GAMES.includes(gameId);
/**
* Games where computers must talk to play at all (마피아 토론): their computers always speak, whatever the room's
* "컴퓨터 채팅" setting says. In every other game the computers' small talk is off unless the host turns it on.
*/
export const BOT_CHAT_REQUIRED: readonly string[] = ['mafia'];
export const botChatRequired = (gameId: string): boolean => BOT_CHAT_REQUIRED.includes(gameId);
/**
* Computer levels 1~60 (docs/09-game-engine.md §9.1): 1~20 쉬움, 21~40 보통, 41~60 어려움. The host can pick a band
* for each computer after adding it; the exact level inside the band is drawn at random and stays hidden until the