방 설정 "컴퓨터 채팅": 컴퓨터가 혼자 말하는 건 방장이 켤 때만(기본 끄기), 마피아는 항상 켜짐
- RoomConfig/RoomView.botChat, config 메시지에 botChat. 새 방·옛 방 모두 끄기. - BotBrain: 꺼져 있으면 도발·반응·대답·시작 인사·끝 인사 안 함, 모델 미리 올리기도 안 함. 바퀴벌레 포커 진짜/블러핑 판단은 그대로, 한마디만 뺌. - BOT_CHAT_REQUIRED(마피아): 설정과 상관없이 항상 켜짐, 설정 칸에 "항상 켜짐" 표시. - 대기실 설정에 컴퓨터 채팅 켜기/끄기(컴퓨터 상대가 있는 게임만). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -25,6 +25,7 @@ export const ClientMessage = z.discriminatedUnion('t', [
|
||||
allowSpectators: z.boolean().optional(),
|
||||
chatEnabled: z.boolean().optional(),
|
||||
chatFilter: z.boolean().optional(),
|
||||
botChat: z.boolean().optional(),
|
||||
}),
|
||||
z.object({ t: z.literal('start') }),
|
||||
z.object({ t: z.literal('kick'), userId }),
|
||||
|
||||
@@ -43,6 +43,8 @@ export interface RoomView {
|
||||
allowSpectators: boolean;
|
||||
chatEnabled: boolean;
|
||||
chatFilter: boolean;
|
||||
/** Computers chat on their own (small talk, reactions, answers). Always on where the game needs it (`botChatRequired`). */
|
||||
botChat: boolean;
|
||||
seats: (SeatView | null)[];
|
||||
spectators: PublicUser[];
|
||||
status: RoomStatus;
|
||||
|
||||
Reference in New Issue
Block a user